public class AsynchronousServerSocketChannel extends AsynchronousServerSocketChannel
| Modifier | Constructor and Description |
|---|---|
protected |
AsynchronousServerSocketChannel(AsynchronousChannelGroup asynchronousChannelGroup) |
| Modifier and Type | Method and Description |
|---|---|
Future<AsynchronousSocketChannel> |
accept() |
<A> void |
accept(A attachment,
CompletionHandler<AsynchronousSocketChannel,? super A> handler) |
AsynchronousServerSocketChannel |
bind(SocketAddress local,
int backlog) |
void |
close() |
void |
doAccept() |
SocketAddress |
getLocalAddress() |
<T> T |
getOption(SocketOption<T> name) |
boolean |
isOpen() |
<T> AsynchronousServerSocketChannel |
setOption(SocketOption<T> name,
T value) |
Set<SocketOption<?>> |
supportedOptions() |
bind, open, open, providerprotected AsynchronousServerSocketChannel(AsynchronousChannelGroup asynchronousChannelGroup) throws IOException
IOExceptionpublic AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) throws IOException
bind in class AsynchronousServerSocketChannelIOExceptionpublic <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class AsynchronousServerSocketChannelIOExceptionpublic <T> T getOption(SocketOption<T> name) throws IOException
IOExceptionpublic Set<SocketOption<?>> supportedOptions()
public <A> void accept(A attachment,
CompletionHandler<AsynchronousSocketChannel,? super A> handler)
accept in class AsynchronousServerSocketChannelpublic void doAccept()
public Future<AsynchronousSocketChannel> accept()
accept in class AsynchronousServerSocketChannelpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class AsynchronousServerSocketChannelIOExceptionpublic boolean isOpen()
public void close()
throws IOException
IOExceptionCopyright © 2021. All rights reserved.