public class DefaultSocketChannelWrapper extends Object implements SocketChannelWrapper
| Modifier and Type | Field and Description |
|---|---|
protected SocketChannel |
socketChannel |
| Constructor and Description |
|---|
DefaultSocketChannelWrapper(SocketChannel socketChannel) |
| 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) |
protected final SocketChannel socketChannel
public DefaultSocketChannelWrapper(SocketChannel socketChannel)
public boolean isBlocking()
isBlocking in interface SocketChannelWrapperpublic int validOps()
validOps in interface SocketChannelWrapperpublic Socket socket()
socket in interface SocketChannelWrapperpublic boolean isConnected()
isConnected in interface SocketChannelWrapperpublic boolean isConnectionPending()
isConnectionPending in interface SocketChannelWrapperpublic boolean connect(SocketAddress socketAddress) throws IOException
connect in interface SocketChannelWrapperIOExceptionpublic boolean finishConnect()
throws IOException
finishConnect in interface SocketChannelWrapperIOExceptionpublic int read(ByteBuffer byteBuffer) throws IOException
read in interface SocketChannelWrapperIOExceptionpublic long read(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
read in interface SocketChannelWrapperIOExceptionpublic long read(ByteBuffer[] byteBuffers) throws IOException
read in interface SocketChannelWrapperIOExceptionpublic int write(ByteBuffer byteBuffer) throws IOException
write in interface SocketChannelWrapperIOExceptionpublic long write(ByteBuffer[] byteBuffers, int i, int i1) throws IOException
write in interface SocketChannelWrapperIOExceptionpublic long write(ByteBuffer[] byteBuffers) throws IOException
write in interface SocketChannelWrapperIOExceptionpublic SelectableChannel configureBlocking(boolean b) throws IOException
configureBlocking in interface SocketChannelWrapperIOExceptionpublic boolean isOpen()
isOpen in interface SocketChannelWrapperpublic void close()
throws IOException
close in interface SocketChannelWrapperIOExceptionpublic SelectionKey keyFor(Selector selector)
keyFor in interface SocketChannelWrapperpublic SelectionKey register(Selector selector, int i, Object o) throws ClosedChannelException
register in interface SocketChannelWrapperClosedChannelExceptionCopyright © 2013 Hazelcast, Inc.. All rights reserved.