class DelegatingSocketChannel<T extends SocketChannel> extends BaseDelegatingSocketChannel<T> implements sun.nio.ch.SelChImpl
SocketChannel
which delegates (its method calls) to
another SocketChannel
. In other words, the former wraps the latter.Modifier and Type | Field and Description |
---|---|
protected sun.nio.ch.SelChImpl |
delegateAsSelChImpl
The view of
BaseDelegatingSocketChannel.delegate as a SelChImpl interface instance
required by Selector and related functionality. |
delegate
Constructor and Description |
---|
DelegatingSocketChannel(T delegate)
Initializes a new
DelegatingSocketChannel instance which is to
delegate (its method calls) to a specific SocketChannel . |
Modifier and Type | Method and Description |
---|---|
FileDescriptor |
getFD()
Forwards to
BaseDelegatingSocketChannel.delegate . |
int |
getFDVal()
Forwards to
BaseDelegatingSocketChannel.delegate . |
void |
kill()
Forwards to
BaseDelegatingSocketChannel.delegate . |
void |
translateAndSetInterestOps(int ops,
sun.nio.ch.SelectionKeyImpl sk)
Forwards to
BaseDelegatingSocketChannel.delegate . |
boolean |
translateAndSetReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl sk)
Forwards to
BaseDelegatingSocketChannel.delegate . |
boolean |
translateAndUpdateReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl sk)
Forwards to
BaseDelegatingSocketChannel.delegate . |
bind, connect, finishConnect, getLocalAddress, getOption, getRemoteAddress, implCloseSelectableChannel, implConfigureBlocking, implSocket, isConnected, isConnectionPending, read, read, setOption, shutdownInput, shutdownOutput, socket, supportedOptions, write, write
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
register
begin, close, end, isOpen
protected final sun.nio.ch.SelChImpl delegateAsSelChImpl
BaseDelegatingSocketChannel.delegate
as a SelChImpl interface instance
required by Selector
and related functionality.public DelegatingSocketChannel(T delegate)
DelegatingSocketChannel
instance which is to
delegate (its method calls) to a specific SocketChannel
.delegate
- the SocketChannel
the new instance is to delegate
(its method calls) topublic FileDescriptor getFD()
BaseDelegatingSocketChannel.delegate
.getFD
in interface sun.nio.ch.SelChImpl
public int getFDVal()
BaseDelegatingSocketChannel.delegate
.getFDVal
in interface sun.nio.ch.SelChImpl
public void kill() throws IOException
BaseDelegatingSocketChannel.delegate
.kill
in interface sun.nio.ch.SelChImpl
IOException
public void translateAndSetInterestOps(int ops, sun.nio.ch.SelectionKeyImpl sk)
BaseDelegatingSocketChannel.delegate
.translateAndSetInterestOps
in interface sun.nio.ch.SelChImpl
public boolean translateAndSetReadyOps(int ops, sun.nio.ch.SelectionKeyImpl sk)
BaseDelegatingSocketChannel.delegate
.translateAndSetReadyOps
in interface sun.nio.ch.SelChImpl
public boolean translateAndUpdateReadyOps(int ops, sun.nio.ch.SelectionKeyImpl sk)
BaseDelegatingSocketChannel.delegate
.translateAndUpdateReadyOps
in interface sun.nio.ch.SelChImpl
Copyright © 2018. All rights reserved.