Package org.apache.sshd.common.io
Class AbstractIoServiceFactoryFactory
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.io.AbstractIoServiceFactoryFactory
-
- All Implemented Interfaces:
IoServiceFactoryFactory
- Direct Known Subclasses:
DefaultIoServiceFactoryFactory
,Nio2ServiceFactoryFactory
public abstract class AbstractIoServiceFactoryFactory extends AbstractLoggingBean implements IoServiceFactoryFactory
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractIoServiceFactoryFactory(Factory<CloseableExecutorService> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Factory<CloseableExecutorService>
getExecutorServiceFactory()
protected CloseableExecutorService
newExecutor()
void
setExecutorServiceFactory(Factory<CloseableExecutorService> factory)
-
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.io.IoServiceFactoryFactory
create
-
-
-
-
Constructor Detail
-
AbstractIoServiceFactoryFactory
protected AbstractIoServiceFactoryFactory(Factory<CloseableExecutorService> factory)
- Parameters:
factory
- TheCloseableExecutorService
factory to use for spawning threads. Ifnull
then an internal service will be allocated.
-
-
Method Detail
-
getExecutorServiceFactory
public Factory<CloseableExecutorService> getExecutorServiceFactory()
-
setExecutorServiceFactory
public void setExecutorServiceFactory(Factory<CloseableExecutorService> factory)
- Specified by:
setExecutorServiceFactory
in interfaceIoServiceFactoryFactory
-
newExecutor
protected CloseableExecutorService newExecutor()
-
-