| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| protected final Map | |
| private final Nio2ServiceFactory |
| Access | Constructor and Description |
|---|---|
| public | Nio2Acceptor(Nio2ServiceFactory nio2ServiceFactory, PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group, ExecutorService resumeTasks)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(Collection<? extends SocketAddress> addresses)
Implements org.
|
| public void | |
| protected void | |
| protected CompletionHandler | createSocketCompletionHandler(Map<SocketAddress, AsynchronousServerSocketChannel> channelsMap, AsynchronousServerSocketChannel socket)
|
| public Set | |
| protected Closeable | |
| protected AsynchronousServerSocketChannel | |
| protected void | preClose()
Overrides org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. |
| protected Closeable | |
| public String | |
| public void | |
| public void | unbind(Collection<? extends SocketAddress> addresses)
Implements org.
|
| public void |
| backlog | back to summary |
|---|---|
| private int backlog | |
| channels | back to summary |
|---|---|
| protected final Map<SocketAddress, AsynchronousServerSocketChannel> channels | |
| nio2ServiceFactory | back to summary |
|---|---|
| private final Nio2ServiceFactory nio2ServiceFactory | |
| Nio2Acceptor | back to summary |
|---|---|
| public Nio2Acceptor(Nio2ServiceFactory nio2ServiceFactory, PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group, ExecutorService resumeTasks) | |
| bind | back to summary |
|---|---|
| public void bind(Collection<? extends SocketAddress> addresses) throws IOException Implements org.
| |
| bind | back to summary |
|---|---|
| public void bind(SocketAddress address) throws IOException Implements org.
| |
| closeImmediately0 | back to summary |
|---|---|
| protected void closeImmediately0() | |
| createSocketCompletionHandler | back to summary |
|---|---|
| protected CompletionHandler | |
| getBoundAddresses | back to summary |
|---|---|
| public Set Implements org.
| |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Overrides org.
| |
| openAsynchronousServerSocketChannel | back to summary |
|---|---|
| protected AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(SocketAddress address, AsynchronousChannelGroup group) throws IOException | |
| preClose | back to summary |
|---|---|
| protected void preClose() Overrides org. Doc from org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. When preClose() is called, isClosing() == true
| |
| protectInProgressBinding | back to summary |
|---|---|
| protected Closeable protectInProgressBinding(SocketAddress address, AsynchronousServerSocketChannel asyncChannel) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unbind | back to summary |
|---|---|
| public void unbind() Implements org.
| |
| unbind | back to summary |
|---|---|
| public void unbind(Collection<? extends SocketAddress> addresses) Implements org.
| |
| unbind | back to summary |
|---|---|
| public void unbind(SocketAddress address) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final AsynchronousServerSocketChannel |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Nio2Session | createSession(Nio2Acceptor acceptor, SocketAddress address, AsynchronousSocketChannel channel, IoHandler handler)
|
| protected boolean | |
| protected void | onCompleted(AsynchronousSocketChannel result, SocketAddress address)
Implements abstract org.
|
| protected void | onFailed(Throwable exc, SocketAddress address)
Implements abstract org.
|
| socket | back to summary |
|---|---|
| protected final AsynchronousServerSocketChannel socket | |
| AcceptCompletionHandler | back to summary |
|---|---|
| pack-priv AcceptCompletionHandler(AsynchronousServerSocketChannel socket) | |
| createSession | back to summary |
|---|---|
| protected Nio2Session createSession(Nio2Acceptor acceptor, SocketAddress address, AsynchronousSocketChannel channel, IoHandler handler) throws Throwable | |
| okToReaccept | back to summary |
|---|---|
| protected boolean okToReaccept(Throwable exc, SocketAddress address) | |
| onCompleted | back to summary |
|---|---|
| protected void onCompleted(AsynchronousSocketChannel result, SocketAddress address) Implements abstract org.
| |
| onFailed | back to summary |
|---|---|
| protected void onFailed(Throwable exc, SocketAddress address) Implements abstract org.
| |