public interface DisposingExecutor extends Executor
Executor
that can dispose other components in unison with itself.Modifier and Type | Method and Description |
---|---|
void |
add(Disposable disposable)
Add a
Disposable to be disposed when this component is disposed |
boolean |
remove(Disposable disposable)
Remove a
Disposable from being disposed when this component is disposed |
int |
size()
Return the number of
Disposable instances registered with this instance. |
void add(Disposable disposable)
Disposable
to be disposed when this component is disposeddisposable
- Disposable instance. Should not be null.boolean remove(Disposable disposable)
Disposable
from being disposed when this component is disposeddisposable
- Disposable instance. Should not be nullint size()
Disposable
instances registered with this instance.
This method is typically used for testing and debugging purposes.Disposable
instances registered.Copyright © 2017. All Rights Reserved.