Class FuturesCloseable<T extends SshFuture>
- 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> 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
-
Fields inherited from interface org.apache.sshd.common.Closeable
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
-
-
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
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
Method Detail
-
doClose
protected void doClose(boolean immediately)
- Overrides:
doClose
in classSimpleCloseable
-
-