public abstract class CloseableContainer extends Object implements AutoCloseable
CloseableContainer describes a container that contains one or
more AutoCloseable instances.| Modifier | Constructor and Description |
|---|---|
protected |
CloseableContainer()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCloseable(AutoCloseable ac)
Add the given closeable object to the closeable object set.
|
void |
close()
Close all the closeables in this instance.
|
protected abstract org.slf4j.Logger |
getLogger()
Return a logger instance.
|
protected final void addCloseable(AutoCloseable ac)
The given object will be closed on the first close() call.
ac - An AutoCloseable instance.protected abstract org.slf4j.Logger getLogger()
Note that this method will be called before the constructor returns.
Logger instance.public void close()
close in interface AutoCloseableCopyright © 2018 OpenDaylight. All rights reserved.