org.apache.blur.thirdparty.thrift_0_9_0.transport
Class TNonblockingTransport

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.transport.TTransport
      extended by org.apache.blur.thirdparty.thrift_0_9_0.transport.TNonblockingTransport
Direct Known Subclasses:
TNonblockingSocket

public abstract class TNonblockingTransport
extends TTransport


Constructor Summary
TNonblockingTransport()
           
 
Method Summary
abstract  boolean finishConnect()
          Non-blocking connection completion.
abstract  int read(ByteBuffer buffer)
           
abstract  SelectionKey registerSelector(Selector selector, int interests)
           
abstract  boolean startConnect()
          Non-blocking connection initialization.
abstract  int write(ByteBuffer buffer)
           
 
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.transport.TTransport
close, consumeBuffer, flush, getBuffer, getBufferPosition, getBytesRemainingInBuffer, isOpen, open, peek, read, readAll, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TNonblockingTransport

public TNonblockingTransport()
Method Detail

startConnect

public abstract boolean startConnect()
                              throws IOException
Non-blocking connection initialization.

Throws:
IOException
See Also:
SocketChannel.connect(SocketAddress remote)

finishConnect

public abstract boolean finishConnect()
                               throws IOException
Non-blocking connection completion.

Throws:
IOException
See Also:
SocketChannel.finishConnect()

registerSelector

public abstract SelectionKey registerSelector(Selector selector,
                                              int interests)
                                       throws IOException
Throws:
IOException

read

public abstract int read(ByteBuffer buffer)
                  throws IOException
Throws:
IOException

write

public abstract int write(ByteBuffer buffer)
                   throws IOException
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.