public class Nio2Connector extends Nio2Service implements IoConnector
| Modifier and Type | Class and Description |
|---|---|
protected class |
Nio2Connector.ConnectionCompletionHandler |
static class |
Nio2Connector.DefaultIoConnectFuture |
AbstractCloseable.StateCONFIGURABLE_OPTIONS, disposing, sessionscloseFuture, futureLock, statelogDEFAULT_REUSE_ADDRESSCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
Nio2Connector(FactoryManager manager,
IoHandler handler,
AsynchronousChannelGroup group) |
| 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,
FactoryManager manager,
IoHandler handler) |
protected Nio2Session |
createSession(FactoryManager manager,
IoHandler handler,
AsynchronousSocketChannel socket) |
protected AsynchronousSocketChannel |
openAsynchronousSocketChannel(SocketAddress address,
AsynchronousChannelGroup group) |
dispose, getChannelGroup, getFactoryManager, getInnerCloseable, getIoHandler, getIoServiceEventListener, getManagedSessions, sessionClosed, setIoServiceEventListener, setOption, setSocketOptions, unmapSessiondoCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManagedSessionsaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenergetIoServiceEventListener, setIoServiceEventListenerpublic Nio2Connector(FactoryManager manager, IoHandler handler, AsynchronousChannelGroup group)
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, FactoryManager manager, IoHandler handler)
protected Nio2Session createSession(FactoryManager manager, IoHandler handler, AsynchronousSocketChannel socket) throws Throwable
ThrowableCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.