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
public class SequentialCloseable extends SimpleCloseable
Waits for a group ofCloseable
s to complete in the given order, then signals the completion by setting the "parent" future as closed- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.closeable.SimpleCloseable
closing, future
-
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 Constructor Description SequentialCloseable(Object id, Object lock, Iterable<? extends Closeable> closeables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doClose(boolean immediately)
-
Methods inherited from class org.apache.sshd.common.util.closeable.SimpleCloseable
addCloseFutureListener, close, isClosed, isClosing, removeCloseFutureListener
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-