public class BlockingSocketChannelConnection extends AbstractSocketChannelConnection implements Connection
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_READ_TIMEOUT_MS |
receiveBufferSizeHint, sendBufferSizeHint, socketChannelNO_HINT_VALUE| Constructor and Description |
|---|
BlockingSocketChannelConnection(int readTimeoutMs) |
BlockingSocketChannelConnection(int sendBufferSizeHint,
int receiveBufferSizeHint,
int readTimeoutMs) |
| 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 static final int DEFAULT_READ_TIMEOUT_MS
public BlockingSocketChannelConnection(int sendBufferSizeHint,
int receiveBufferSizeHint,
int readTimeoutMs)
public BlockingSocketChannelConnection(int readTimeoutMs)
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