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