Class NettyIoServiceFactory
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.netty.NettyIoServiceFactory
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.io.IoServiceFactory
public class NettyIoServiceFactory
extends org.apache.sshd.common.util.closeable.AbstractCloseable
implements org.apache.sshd.common.io.IoServiceFactory
-
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
FieldsModifier and TypeFieldDescriptionprotected final booleanprivate org.apache.sshd.common.io.IoServiceEventListenerprotected final io.netty.channel.EventLoopGroupprotected final org.apache.sshd.common.FactoryManagerFields 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
ConstructorsConstructorDescriptionNettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager) NettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager, io.netty.channel.EventLoopGroup group) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.common.io.IoAcceptorcreateAcceptor(org.apache.sshd.common.io.IoHandler handler) org.apache.sshd.common.io.IoConnectorcreateConnector(org.apache.sshd.common.io.IoHandler handler) protected org.apache.sshd.common.future.CloseFutureprotected voidorg.apache.sshd.common.io.IoServiceEventListenervoidsetIoServiceEventListener(org.apache.sshd.common.io.IoServiceEventListener listener) Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, 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, removeCloseFutureListener
-
Field Details
-
eventLoopGroup
protected final io.netty.channel.EventLoopGroup eventLoopGroup -
closeEventLoopGroup
protected final boolean closeEventLoopGroup -
manager
protected final org.apache.sshd.common.FactoryManager manager -
eventListener
private org.apache.sshd.common.io.IoServiceEventListener eventListener
-
-
Constructor Details
-
NettyIoServiceFactory
public NettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager) -
NettyIoServiceFactory
public NettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager, io.netty.channel.EventLoopGroup group)
-
-
Method Details
-
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
-
createConnector
public org.apache.sshd.common.io.IoConnector createConnector(org.apache.sshd.common.io.IoHandler handler) - Specified by:
createConnectorin interfaceorg.apache.sshd.common.io.IoServiceFactory
-
createAcceptor
public org.apache.sshd.common.io.IoAcceptor createAcceptor(org.apache.sshd.common.io.IoHandler handler) - Specified by:
createAcceptorin interfaceorg.apache.sshd.common.io.IoServiceFactory
-
doCloseGracefully
protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()- Overrides:
doCloseGracefullyin classorg.apache.sshd.common.util.closeable.AbstractCloseable
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediatelyin classorg.apache.sshd.common.util.closeable.AbstractCloseable
-