Package org.apache.sshd.common.io.nio2
Class Nio2ServiceFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,Closeable
,FactoryManagerHolder
,IoServiceEventListenerManager
,IoServiceFactory
,ExecutorServiceCarrier
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
AbstractCloseable.State
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, state
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorDescriptionNio2ServiceFactory
(FactoryManager factoryManager, CloseableExecutorService service, CloseableExecutorService resumeTasks) -
Method Summary
Modifier and TypeMethodDescriptioncreateAcceptor
(IoHandler handler) createConnector
(IoHandler handler) createSession
(Nio2Service service, IoHandler handler, AsynchronousSocketChannel socket, SocketAddress address) protected void
Methods inherited from class org.apache.sshd.common.io.AbstractIoServiceFactory
autowireCreatedService, getExecutorService, getFactoryManager, getIoServiceEventListener, getNioWorkers, setIoServiceEventListener
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, doCloseGracefully, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
Constructor Details
-
Nio2ServiceFactory
public Nio2ServiceFactory(FactoryManager factoryManager, CloseableExecutorService service, CloseableExecutorService resumeTasks)
-
-
Method Details
-
createConnector
-
createAcceptor
-
createSession
public Nio2Session createSession(Nio2Service service, IoHandler handler, AsynchronousSocketChannel socket, SocketAddress address) throws Throwable - Throws:
Throwable
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediately
in classAbstractIoServiceFactory
-