Class FuturesCloseable<T extends SshFuture<T>>
- 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.FuturesCloseable<T>
-
- Type Parameters:
T
- Type of future
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.nio.channels.Channel
,Closeable
public class FuturesCloseable<T extends SshFuture<T>> extends SimpleCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Iterable<? extends SshFuture<T>>
futures
-
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 FuturesCloseable(java.lang.Object id, java.lang.Object lock, java.lang.Iterable<? extends SshFuture<T>> futures)
-
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
-
-
-
-
Method Detail
-
doClose
protected void doClose(boolean immediately)
- Overrides:
doClose
in classSimpleCloseable
-
-