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 org.apache.sshd.common.util.closeable.AbstractCloseable
AbstractCloseable.State
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, state
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final CloseFuture
protected final void
doCloseImmediately is called once and only once with state == Immediateprotected abstract Closeable
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
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
-
Constructor Details
-
AbstractInnerCloseable
protected AbstractInnerCloseable() -
AbstractInnerCloseable
-
-
Method Details
-
getInnerCloseable
-
doCloseGracefully
- Overrides:
doCloseGracefully
in classAbstractCloseable
-
doCloseImmediately
protected final void doCloseImmediately()Description copied from class:AbstractCloseable
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
- Overrides:
doCloseImmediately
in classAbstractCloseable
-