public interface SocketChannelWrapper
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) |
long |
read(ByteBuffer[] byteBuffers) |
long |
read(ByteBuffer[] byteBuffers,
int i,
int i1) |
SelectionKey |
register(Selector selector,
int i,
Object o) |
Socket |
socket() |
int |
validOps() |
int |
write(ByteBuffer byteBuffer) |
long |
write(ByteBuffer[] byteBuffers) |
long |
write(ByteBuffer[] byteBuffers,
int i,
int i1) |
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 i, Object o) throws ClosedChannelException
ClosedChannelException
int read(ByteBuffer byteBuffer) throws IOException
IOException
long read(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
IOException
long read(ByteBuffer[] byteBuffers) throws IOException
IOException
int write(ByteBuffer byteBuffer) throws IOException
IOException
long write(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
IOException
long write(ByteBuffer[] byteBuffers) throws IOException
IOException
SelectableChannel configureBlocking(boolean b) throws IOException
IOException
boolean isOpen()
void close() throws IOException
IOException
Copyright © 2013 Hazelcast, Inc.. All rights reserved.