public final class Disposer extends Object implements Disposable
Utility for tracking and mass Disposable.dispose() of Disposable resources.
| Constructor and Description |
|---|
Disposer() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the resources held by this object.
|
<T extends Disposable> |
register(T theToDispose)
Add a new
Disposable for tracking to this `Disposer` |
public <T extends Disposable> T register(T theToDispose)
Disposable for tracking to this `Disposer`theToDispose - the object to eventually dispose ofpublic void dispose()
Closeable.close() or some other
method wil lbe more appropriate.dispose in interface DisposableCopyright © 2010-2016 Stardog Union. All Rights Reserved.