public class SequentialCloseable extends SimpleCloseable
Closeable
s to complete in the given order, then signals the completion by setting the
"parent" future as closedModifier and Type | Field and Description |
---|---|
private java.lang.Iterable<? extends Closeable> |
closeables |
closing, future
log
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT
Constructor and Description |
---|
SequentialCloseable(java.lang.Object id,
java.lang.Object lock,
java.lang.Iterable<? extends Closeable> closeables) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose(boolean immediately) |
addCloseFutureListener, close, isClosed, isClosing, removeCloseFutureListener, toString
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, close, getMaxCloseWaitTime, isOpen
private final java.lang.Iterable<? extends Closeable> closeables
public SequentialCloseable(java.lang.Object id, java.lang.Object lock, java.lang.Iterable<? extends Closeable> closeables)
protected void doClose(boolean immediately)
doClose
in class SimpleCloseable