Class AbstractInnerCloseable
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.util.closeable.AbstractInnerCloseable
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, Closeable
- Direct Known Subclasses:
AbstractChannel, AbstractConnectionService, AbstractKexFactoryManager, BufferedIoOutputStream, DefaultForwarder, DefaultX11ForwardSupport, Nio2Service
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCloseable
AbstractCloseable.State -
Field Summary
Fields inherited from class AbstractCloseable
closeFuture, futureLock, stateFields inherited from class AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final CloseFutureprotected final voiddoCloseImmediately is called once and only once with state == Immediateprotected abstract CloseableMethods inherited from class AbstractCloseable
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerMethods inherited from class AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Constructor Details
-
AbstractInnerCloseable
protected AbstractInnerCloseable() -
AbstractInnerCloseable
-
-
Method Details
-
getInnerCloseable
-
doCloseGracefully
- Overrides:
doCloseGracefullyin classAbstractCloseable
-
doCloseImmediately
protected final void doCloseImmediately()Description copied from class:AbstractCloseabledoCloseImmediately 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
- Overrides:
doCloseImmediatelyin classAbstractCloseable
-