Class ParallelCloseable
- 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.ParallelCloseable
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,Closeable
public class ParallelCloseable extends SimpleCloseable
Waits for a group ofCloseable
s to complete in any 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
-
-
Constructor Summary
Constructors Constructor Description ParallelCloseable(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, 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
-
-