public final class CompositeAutoCloseable extends Object implements AutoCloseable
CompositeAutoCloseable describes a set of AutoCloseable.| Constructor and Description |
|---|
CompositeAutoCloseable(org.slf4j.Logger log)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AutoCloseable ac)
Add the given
AutoCloseable instance. |
void |
close()
Close all closeables contained by this instance.
|
boolean |
isClosed()
Determine whether this instance is already closed or not.
|
public CompositeAutoCloseable(org.slf4j.Logger log)
log - A logger instance used to record error logs.public void add(AutoCloseable ac)
AutoCloseable instance.
Note that the given AutoCloseable will be closed if this
instance is already closed.
ac - An AutoCloseable instance.public boolean isClosed()
true only if this instance is already closed.public void close()
close in interface AutoCloseableCopyright © 2018 OpenDaylight. All rights reserved.