public interface SocketChannelWrapper extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SelectableChannel |
configureBlocking(boolean b) |
boolean |
connect(SocketAddress socketAddress) |
boolean |
finishConnect() |
boolean |
isBlocking() |
boolean |
isConnected() |
boolean |
isConnectionPending() |
boolean |
isOpen() |
SelectionKey |
keyFor(Selector selector) |
int |
read(ByteBuffer byteBuffer) |
SelectionKey |
register(Selector selector,
int ops,
Object attachment) |
Socket |
socket() |
int |
validOps() |
int |
write(ByteBuffer byteBuffer) |
boolean isBlocking()
int validOps()
Socket socket()
boolean isConnected()
boolean isConnectionPending()
boolean connect(SocketAddress socketAddress) throws IOException
IOExceptionboolean finishConnect()
throws IOException
IOExceptionSelectionKey keyFor(Selector selector)
SelectionKey register(Selector selector, int ops, Object attachment) throws ClosedChannelException
ClosedChannelExceptionint read(ByteBuffer byteBuffer) throws IOException
IOExceptionint write(ByteBuffer byteBuffer) throws IOException
IOExceptionSelectableChannel configureBlocking(boolean b) throws IOException
IOExceptionboolean isOpen()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2021 Hazelcast, Inc.. All rights reserved.