Class SequentialCloseable
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.SimpleCloseable
org.apache.sshd.common.util.closeable.SequentialCloseable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,Closeable
Waits for a group of
Closeable
s to complete in the given order, then signals the completion by setting the
"parent" future as closed-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.closeable.SimpleCloseable
closing, future
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorsConstructorDescriptionSequentialCloseable
(Object id, Object lock, Iterable<? extends Closeable> closeables) -
Method Summary
Methods inherited from class org.apache.sshd.common.util.closeable.SimpleCloseable
addCloseFutureListener, close, isClosed, isClosing, removeCloseFutureListener, toString
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
-
Field Details
-
closeables
-
-
Constructor Details
-
SequentialCloseable
-
-
Method Details
-
doClose
protected void doClose(boolean immediately) - Overrides:
doClose
in classSimpleCloseable
-