Top Fields Constructors Methods
org.apache.sshd.common.io

public abstract Class AbstractIoServiceFactory

extends AbstractCloseable
implements IoServiceFactory, FactoryManagerHolder, ExecutorServiceCarrier
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.util.threads.ExecutorServiceCarrier, org.apache.sshd.common.FactoryManagerHolder, org.apache.sshd.common.io.IoServiceFactory, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.Closeable, java.nio.channels.Channel, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.apache.sshd.common.io.nio2.Nio2ServiceFactory
Imports
java.util.Objects, java.util.concurrent.TimeUnit, org.apache.sshd.common.FactoryManager, .FactoryManagerHolder, org.apache.sshd.common.util.closeable.AbstractCloseable, org.apache.sshd.common.util.threads.CloseableExecutorService, .ExecutorServiceCarrier, org.apache.sshd.core.CoreModuleProperties

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private IoServiceEventListener
private final CloseableExecutorService
private final FactoryManager
Inherited from org.apache.sshd.common.util.closeable.AbstractCloseable:
closeFuturefutureLockstate

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected <S extends IoService> S
protected void
doCloseImmediately()

Overrides org.apache.sshd.common.util.closeable.AbstractCloseable.doCloseImmediately.

doCloseImmediately is called once and only once with state == Immediate Overriding methods should always call the base implementation.

public final CloseableExecutorService
public final FactoryManager
public IoServiceEventListener
public static int
public void
Inherited from org.apache.sshd.common.util.closeable.AbstractCloseable:
addCloseFutureListenerbuilderclosedoCloseGracefullygetFutureLockisClosedisClosingpreCloseremoveCloseFutureListener

Field Detail

eventListenerback to summary
private IoServiceEventListener eventListener
executorback to summary
private final CloseableExecutorService executor
managerback to summary
private final FactoryManager manager

Constructor Detail

AbstractIoServiceFactoryback to summary
protected AbstractIoServiceFactory(FactoryManager factoryManager, CloseableExecutorService executorService)

Method Detail

autowireCreatedServiceback to summary
protected <S extends IoService> S autowireCreatedService(S service)
doCloseImmediatelyback to summary
protected void doCloseImmediately()

Overrides org.apache.sshd.common.util.closeable.AbstractCloseable.doCloseImmediately.

Doc from org.apache.sshd.common.util.closeable.AbstractCloseable.doCloseImmediately.

doCloseImmediately is called once and only once with state == Immediate Overriding methods should always call the base implementation. It may be called concurrently while preClose() or doCloseGracefully is executing

Annotations
@Override
getExecutorServiceback to summary
public final CloseableExecutorService getExecutorService()

Implements org.apache.sshd.common.util.threads.ExecutorServiceCarrier.getExecutorService.

Returns:CloseableExecutorService

Doc from org.apache.sshd.common.util.threads.ExecutorServiceCarrier.getExecutorService.

The CloseableExecutorService to use

Annotations
@Override
getFactoryManagerback to summary
public final FactoryManager getFactoryManager()

Implements org.apache.sshd.common.FactoryManagerHolder.getFactoryManager.

Returns:FactoryManager

Doc from org.apache.sshd.common.FactoryManagerHolder.getFactoryManager.

The currently associated FactoryManager

Annotations
@Override
getIoServiceEventListenerback to summary
public IoServiceEventListener getIoServiceEventListener()

Implements org.apache.sshd.common.io.IoServiceEventListenerManager.getIoServiceEventListener.

Annotations
@Override
getNioWorkersback to summary
public static int getNioWorkers(FactoryManager manager)
setIoServiceEventListenerback to summary
public void setIoServiceEventListener(IoServiceEventListener listener)

Implements org.apache.sshd.common.io.IoServiceEventListenerManager.setIoServiceEventListener.

Annotations
@Override