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
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
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
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