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
IOException
boolean finishConnect() throws IOException
IOException
SelectionKey keyFor(Selector selector)
SelectionKey register(Selector selector, int ops, Object attachment) throws ClosedChannelException
ClosedChannelException
int read(ByteBuffer byteBuffer) throws IOException
IOException
int write(ByteBuffer byteBuffer) throws IOException
IOException
SelectableChannel configureBlocking(boolean b) throws IOException
IOException
boolean isOpen()
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2014 Hazelcast, Inc.. All rights reserved.