java.io.Closeable, java.lang.AutoCloseable, Releasable, NioChannel, TcpChannelpublic class TcpNioSocketChannel extends NioSocketChannel implements TcpChannel
| Constructor | Description |
|---|---|
TcpNioSocketChannel(java.nio.channels.SocketChannel socketChannel,
SocketSelector selector) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
sendMessage(BytesReference reference,
ActionListener<java.lang.Void> listener) |
|
void |
setSoLinger(int value) |
|
java.lang.String |
toString() |
addCloseListener, close, getLocalAddress, getRawChannel, getSelectionKey, isOpen, registeraddConnectListener, closeFromSelector, finishConnect, getExceptionContext, getReadContext, getRemoteAddress, getSelector, getWriteContext, isConnectComplete, isReadable, isWritable, read, setContexts, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseListener, close, getLocalAddress, isOpenpublic TcpNioSocketChannel(java.nio.channels.SocketChannel socketChannel,
SocketSelector selector)
throws java.io.IOException
java.io.IOExceptionpublic void sendMessage(BytesReference reference, ActionListener<java.lang.Void> listener)
sendMessage in interface TcpChannelpublic void setSoLinger(int value)
throws java.io.IOException
setSoLinger in interface TcpChanneljava.io.IOExceptionpublic java.lang.String toString()
toString in class NioSocketChannel