public abstract class AbstractAsyncServerSocketChannel<S extends AbstractAsyncServerSocketChannel<S,C>,C extends AsynchronousSocketChannel> extends Object implements AsyncChannel, NetworkChannel
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAsyncServerSocketChannel(AsynchronousServerSocketChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
Promise<C> |
accept() |
<A> void |
accept(A attachment,
CompletionHandler<? super C,? super A> handler) |
S |
bind(SocketAddress local) |
S |
bind(SocketAddress local,
int backlog) |
void |
close() |
SocketAddress |
getLocalAddress() |
<T> T |
getOption(SocketOption<T> name) |
boolean |
isOpen() |
AsynchronousChannelProvider |
provider() |
<T> S |
setOption(SocketOption<T> name,
T value) |
Set<SocketOption<?>> |
supportedOptions() |
protected abstract C |
wrap(AsynchronousSocketChannel channel) |
protected AbstractAsyncServerSocketChannel(AsynchronousServerSocketChannel delegate)
public AsynchronousChannelProvider provider()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface AsynchronousChannelclose in interface ChannelIOExceptionpublic <T> T getOption(SocketOption<T> name) throws IOException
getOption in interface NetworkChannelIOExceptionpublic Set<SocketOption<?>> supportedOptions()
supportedOptions in interface NetworkChannelpublic S bind(SocketAddress local) throws IOException
bind in interface NetworkChannelIOExceptionpublic S bind(SocketAddress local, int backlog) throws IOException
IOExceptionpublic <T> S setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelIOExceptionpublic <A> void accept(A attachment,
CompletionHandler<? super C,? super A> handler)
public SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelIOExceptionprotected abstract C wrap(AsynchronousSocketChannel channel)
Copyright © 2021. All rights reserved.