com.hazelcast.nio.tcp
public interface SocketChannelWrapper extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes socket channel.
|
void |
closeInbound()
Closes inbound.
|
void |
closeOutbound()
Closes outbound.
|
SelectableChannel |
configureBlocking(boolean b) |
boolean |
connect(SocketAddress socketAddress) |
boolean |
isBlocking() |
boolean |
isConnected() |
boolean |
isOpen() |
SelectionKey |
keyFor(Selector selector) |
int |
read(ByteBuffer byteBuffer) |
SelectionKey |
register(Selector selector,
int ops,
Object attachment) |
Socket |
socket() |
int |
write(ByteBuffer byteBuffer) |
boolean isBlocking()
Socket socket()
boolean isConnected()
boolean connect(SocketAddress socketAddress) 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 closeInbound() throws IOException
Not thread safe. Should be called in channel reader thread.
IOException
void closeOutbound() throws IOException
Not thread safe. Should be called in channel writer thread.
IOException
void close() throws IOException
close
in interface Closeable
IOException
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.