public class Nio2Acceptor extends Nio2Service implements IoAcceptor
| Modifier and Type | Class and Description |
|---|---|
protected class |
Nio2Acceptor.AcceptCompletionHandler |
AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
protected Map<SocketAddress,AsynchronousServerSocketChannel> |
channels |
CONFIGURABLE_OPTIONS, disposing, propertyResolver, sessionscloseFuture, futureLock, statelogDEFAULT_REUSE_ADDRESS| Constructor and Description |
|---|
Nio2Acceptor(PropertyResolver propertyResolver,
IoHandler handler,
AsynchronousChannelGroup group) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Collection<? extends SocketAddress> addresses) |
void |
bind(SocketAddress address) |
protected void |
closeImmediately0() |
protected CompletionHandler<AsynchronousSocketChannel,? super SocketAddress> |
createSocketCompletionHandler(Map<SocketAddress,AsynchronousServerSocketChannel> channelsMap,
AsynchronousServerSocketChannel socket) |
Set<SocketAddress> |
getBoundAddresses() |
protected Closeable |
getInnerCloseable() |
protected AsynchronousServerSocketChannel |
openAsynchronousServerSocketChannel(SocketAddress address,
AsynchronousChannelGroup group) |
protected void |
preClose() |
protected Closeable |
protectInProgressBinding(SocketAddress address,
AsynchronousServerSocketChannel asyncChannel) |
String |
toString() |
void |
unbind() |
void |
unbind(Collection<? extends SocketAddress> addresses) |
void |
unbind(SocketAddress address) |
dispose, getChannelGroup, getIoHandler, getIoServiceEventListener, getManagedSessions, sessionClosed, setIoServiceEventListener, setOption, setSocketOptions, unmapSessiondoCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, removeCloseFutureListenerdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetManagedSessionsaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenergetIoServiceEventListener, setIoServiceEventListenerprotected final Map<SocketAddress,AsynchronousServerSocketChannel> channels
public Nio2Acceptor(PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group)
public void bind(Collection<? extends SocketAddress> addresses) throws IOException
bind in interface IoAcceptorIOExceptionprotected Closeable protectInProgressBinding(SocketAddress address, AsynchronousServerSocketChannel asyncChannel)
protected AsynchronousServerSocketChannel openAsynchronousServerSocketChannel(SocketAddress address, AsynchronousChannelGroup group) throws IOException
IOExceptionprotected CompletionHandler<AsynchronousSocketChannel,? super SocketAddress> createSocketCompletionHandler(Map<SocketAddress,AsynchronousServerSocketChannel> channelsMap, AsynchronousServerSocketChannel socket) throws IOException
IOExceptionpublic void bind(SocketAddress address) throws IOException
bind in interface IoAcceptorIOExceptionpublic void unbind()
unbind in interface IoAcceptorpublic void unbind(Collection<? extends SocketAddress> addresses)
unbind in interface IoAcceptorpublic void unbind(SocketAddress address)
unbind in interface IoAcceptorpublic Set<SocketAddress> getBoundAddresses()
getBoundAddresses in interface IoAcceptorprotected void preClose()
preClose in class AbstractCloseableprotected Closeable getInnerCloseable()
getInnerCloseable in class Nio2Serviceprotected void closeImmediately0()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.