public class NonblockingSocketChannelConnection extends AbstractSocketChannelConnection implements Connection
receiveBufferSizeHint, sendBufferSizeHint, socketChannelNO_HINT_VALUE| Constructor and Description |
|---|
NonblockingSocketChannelConnection(int sendBufferSizeHint,
int receiveBufferSizeHint) |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.channels.SocketChannel |
openChannel(java.lang.String hostname,
int port) |
int |
readInto(java.nio.ByteBuffer byteBuffer) |
connect, disconnect, isConnected, setBufferSizes, tryFinishConnect, writeFromclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, isConnected, tryFinishConnect, writeFrompublic NonblockingSocketChannelConnection(int sendBufferSizeHint,
int receiveBufferSizeHint)
public int readInto(java.nio.ByteBuffer byteBuffer)
throws java.io.IOException
readInto in interface Connectionjava.io.IOExceptionprotected java.nio.channels.SocketChannel openChannel(java.lang.String hostname,
int port)
throws java.io.IOException
openChannel in class AbstractSocketChannelConnectionjava.io.IOException