Class AbstractIoServiceFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.io.AbstractIoServiceFactory
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, FactoryManagerHolder, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.io.IoServiceFactory, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
- Direct Known Subclasses:
Nio2ServiceFactory
public abstract class AbstractIoServiceFactory
extends org.apache.sshd.common.util.closeable.AbstractCloseable
implements org.apache.sshd.common.io.IoServiceFactory, FactoryManagerHolder, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable.State -
Field Summary
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, stateFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIoServiceFactory(FactoryManager factoryManager, org.apache.sshd.common.util.threads.CloseableExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionprotected <S extends org.apache.sshd.common.io.IoService>
SautowireCreatedService(S service) protected voidfinal org.apache.sshd.common.util.threads.CloseableExecutorServicefinal FactoryManagerorg.apache.sshd.common.io.IoServiceEventListenerstatic intgetNioWorkers(FactoryManager manager) voidsetIoServiceEventListener(org.apache.sshd.common.io.IoServiceEventListener listener) Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, doCloseGracefully, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerMethods 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, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.io.IoServiceFactory
createAcceptor, createConnector
-
Constructor Details
-
AbstractIoServiceFactory
protected AbstractIoServiceFactory(FactoryManager factoryManager, org.apache.sshd.common.util.threads.CloseableExecutorService executorService)
-
-
Method Details
-
getFactoryManager
- Specified by:
getFactoryManagerin interfaceFactoryManagerHolder- Returns:
- The currently associated
FactoryManager
-
getExecutorService
public final org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()- Specified by:
getExecutorServicein interfaceorg.apache.sshd.common.util.threads.ExecutorServiceCarrier
-
getIoServiceEventListener
public org.apache.sshd.common.io.IoServiceEventListener getIoServiceEventListener()- Specified by:
getIoServiceEventListenerin interfaceorg.apache.sshd.common.io.IoServiceEventListenerManager
-
setIoServiceEventListener
public void setIoServiceEventListener(org.apache.sshd.common.io.IoServiceEventListener listener) - Specified by:
setIoServiceEventListenerin interfaceorg.apache.sshd.common.io.IoServiceEventListenerManager
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediatelyin classorg.apache.sshd.common.util.closeable.AbstractCloseable
-
autowireCreatedService
protected <S extends org.apache.sshd.common.io.IoService> S autowireCreatedService(S service) -
getNioWorkers
-