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:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,Closeable
- Direct Known Subclasses:
AbstractChannel,AbstractConnectionService,AbstractKexFactoryManager,BufferedIoOutputStream,DefaultForwarder,DefaultX11ForwardSupport,Nio2Service
public abstract class AbstractInnerCloseable extends AbstractCloseable
-
-
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 Modifier Constructor Description protectedAbstractInnerCloseable()protectedAbstractInnerCloseable(java.lang.String discriminator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CloseFuturedoCloseGracefully()protected voiddoCloseImmediately()doCloseImmediately is called once and only once with state == Immediateprotected abstract CloseablegetInnerCloseable()-
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
-
-
-
-
Method Detail
-
getInnerCloseable
protected abstract Closeable getInnerCloseable()
-
doCloseGracefully
protected final CloseFuture 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
-
-