public class Nio2Connector extends Nio2Service implements IoConnector
| Modifier and Type | Class and Description |
|---|---|
protected class |
Nio2Connector.ConnectionCompletionHandler |
AbstractCloseable.StateCONFIGURABLE_OPTIONS, disposing, propertyResolver, sessionscloseFuture, futureLock, statelogDEFAULT_REUSE_ADDRESS| Constructor and Description |
|---|
Nio2Connector(Nio2ServiceFactory nio2ServiceFactory,
PropertyResolver propertyResolver,
IoHandler handler,
AsynchronousChannelGroup group,
ExecutorService resumeTasks) |
| Modifier and Type | Method and Description |
|---|---|
IoConnectFuture |
connect(SocketAddress address,
AttributeRepository context,
SocketAddress localAddress) |
protected Nio2CompletionHandler<Void,Object> |
createConnectionCompletionHandler(IoConnectFuture future,
AsynchronousSocketChannel socket,
AttributeRepository context,
PropertyResolver propertyResolver,
IoHandler handler) |
protected Nio2Session |
createSession(PropertyResolver propertyResolver,
IoHandler handler,
AsynchronousSocketChannel socket) |
protected AsynchronousSocketChannel |
openAsynchronousSocketChannel(SocketAddress address,
AsynchronousChannelGroup group) |
dispose, getChannelGroup, getExecutorService, getInnerCloseable, getIoHandler, getIoServiceEventListener, getManagedSessions, sessionClosed, setIoServiceEventListener, setOption, setSocketOptions, unmapSessiondoCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, 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, toString, wait, wait, waitgetManagedSessionsaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenergetIoServiceEventListener, setIoServiceEventListenerpublic Nio2Connector(Nio2ServiceFactory nio2ServiceFactory, PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group, ExecutorService resumeTasks)
public IoConnectFuture connect(SocketAddress address, AttributeRepository context, SocketAddress localAddress)
connect in interface IoConnectorprotected AsynchronousSocketChannel openAsynchronousSocketChannel(SocketAddress address, AsynchronousChannelGroup group) throws IOException
IOExceptionprotected Nio2CompletionHandler<Void,Object> createConnectionCompletionHandler(IoConnectFuture future, AsynchronousSocketChannel socket, AttributeRepository context, PropertyResolver propertyResolver, IoHandler handler)
protected Nio2Session createSession(PropertyResolver propertyResolver, IoHandler handler, AsynchronousSocketChannel socket) throws Throwable
ThrowableCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.