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

public Class Nio2ServiceFactory

extends AbstractIoServiceFactory
Class Inheritance
Imports
java.io.IOException, java.net.SocketAddress, java.nio.channels.AsynchronousChannelGroup, .AsynchronousSocketChannel, java.util.concurrent.TimeUnit, org.apache.sshd.common.FactoryManager, .RuntimeSshException, org.apache.sshd.common.io.AbstractIoServiceFactory, .IoAcceptor, .IoConnector, .IoHandler, org.apache.sshd.common.util.threads.CloseableExecutorService, .ThreadUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final AsynchronousChannelGroup
private final CloseableExecutorService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IoAcceptor
public IoConnector
public Nio2Session
protected void
doCloseImmediately()

Overrides org.apache.sshd.common.io.AbstractIoServiceFactory.doCloseImmediately.

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

Inherited from org.apache.sshd.common.io.AbstractIoServiceFactory:
autowireCreatedServicegetExecutorServicegetFactoryManagergetIoServiceEventListenergetNioWorkerssetIoServiceEventListener

Field Detail

groupback to summary
private final AsynchronousChannelGroup group
resumingback to summary
private final CloseableExecutorService resuming

Constructor Detail

Nio2ServiceFactoryback to summary
public Nio2ServiceFactory(FactoryManager factoryManager, CloseableExecutorService service, CloseableExecutorService resumeTasks)

Method Detail

createAcceptorback to summary
public IoAcceptor createAcceptor(IoHandler handler)

Implements org.apache.sshd.common.io.IoServiceFactory.createAcceptor.

Annotations
@Override
createConnectorback to summary
public IoConnector createConnector(IoHandler handler)

Implements org.apache.sshd.common.io.IoServiceFactory.createConnector.

Annotations
@Override
createSessionback to summary
public Nio2Session createSession(Nio2Service service, IoHandler handler, AsynchronousSocketChannel socket, SocketAddress address) throws Throwable
doCloseImmediatelyback to summary
protected void doCloseImmediately()

Overrides org.apache.sshd.common.io.AbstractIoServiceFactory.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