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
,DefaultForwardingFilter
,DefaultX11ForwardSupport
,Nio2Service
public abstract class AbstractInnerCloseable extends AbstractCloseable
- Author:
- Apache MINA SSHD Project
-
-
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
-
Fields inherited from interface org.apache.sshd.common.Closeable
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractInnerCloseable()
protected
AbstractInnerCloseable(String discriminator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CloseFuture
doCloseGracefully()
protected void
doCloseImmediately()
doCloseImmediately is called once and only once with state == Immediateprotected abstract Closeable
getInnerCloseable()
-
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
getSimplifiedLogger
-
-
-
-
Constructor Detail
-
AbstractInnerCloseable
protected AbstractInnerCloseable()
-
AbstractInnerCloseable
protected AbstractInnerCloseable(String discriminator)
-
-
Method Detail
-
getInnerCloseable
protected abstract Closeable getInnerCloseable()
-
doCloseGracefully
protected final CloseFuture 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
-
-