Package org.jruby.pg.internal.messages

Examples of org.jruby.pg.internal.messages.CancelRequest


  public void cancel() throws IOException {
    SocketChannel closeChannel = SocketChannel.open();
    closeChannel.configureBlocking(true);
    closeChannel.connect(new InetSocketAddress(host, port));
    ByteBuffer bytes = new CancelRequest(backendKeyData.getPid(), backendKeyData.getSecret()).toBytes();
    closeChannel.write(bytes);
    closeChannel.close();
  }
View Full Code Here

TOP

Related Classes of org.jruby.pg.internal.messages.CancelRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.