public class SniffySocketChannelAdapter extends SocketChannel implements SelectableChannelWrapper<SocketChannel>, sun.nio.ch.SelChImpl
| Modifier | Constructor and Description |
|---|---|
protected |
SniffySocketChannelAdapter(SelectorProvider provider,
SocketChannel delegate) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected SniffySocketChannelAdapter(SelectorProvider provider, SocketChannel delegate)
public SocketChannel getDelegate()
getDelegate in interface SelectableChannelWrapper<SocketChannel>@IgnoreJRERequirement public SocketChannel bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class SocketChannelIOException@IgnoreJRERequirement public <T> SocketChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class SocketChannelIOException@IgnoreJRERequirement public SocketChannel shutdownInput() throws IOException
shutdownInput in class SocketChannelIOException@IgnoreJRERequirement public SocketChannel shutdownOutput() throws IOException
shutdownOutput in class SocketChannelIOExceptionpublic Socket socket()
socket in class SocketChannelpublic boolean isConnected()
isConnected in class SocketChannelpublic boolean isConnectionPending()
isConnectionPending in class SocketChannelpublic boolean connect(SocketAddress remote) throws IOException
connect in class SocketChannelIOExceptionpublic boolean finishConnect()
throws IOException
finishConnect in class SocketChannelIOException@IgnoreJRERequirement public SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class SocketChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class SocketChannelIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class SocketChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class SocketChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class SocketChannelIOExceptionpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class SocketChannelIOExceptionpublic void implCloseSelectableChannel()
implCloseSelectableChannel in class AbstractSelectableChannelpublic void implConfigureBlocking(boolean block)
implConfigureBlocking in class AbstractSelectableChannel@IgnoreJRERequirement public <T> T getOption(SocketOption<T> name) throws IOException
getOption in interface NetworkChannelIOException@IgnoreJRERequirement public Set<SocketOption<?>> supportedOptions()
supportedOptions in interface NetworkChannelpublic FileDescriptor getFD()
getFD in interface sun.nio.ch.SelChImplpublic int getFDVal()
getFDVal in interface sun.nio.ch.SelChImplpublic boolean translateAndUpdateReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl ski)
translateAndUpdateReadyOps in interface sun.nio.ch.SelChImplpublic boolean translateAndSetReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl ski)
translateAndSetReadyOps in interface sun.nio.ch.SelChImplpublic void kill()
throws IOException
kill in interface sun.nio.ch.SelChImplIOExceptionpublic void translateAndSetInterestOps(int ops,
sun.nio.ch.SelectionKeyImpl sk)
translateAndSetInterestOps in interface sun.nio.ch.SelChImplpublic int translateInterestOps(int ops)
public void park(int event,
long nanos)
throws IOException
IOExceptionpublic void park(int event)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.