|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketChannelWrapper
Method Summary | |
---|---|
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)
|
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |