public interface DisposableManager
Disposable
objects.Modifier and Type | Method and Description |
---|---|
boolean |
bind(Disposable disposable)
Registers a disposable as being in use.
|
int |
getBoundDisposableCount()
Returns the number of Disposable objects pending to be released.
|
Set |
getBoundDisposables()
Returns a
Set of Disposable objects currently bound. |
boolean |
release(Disposable disposable)
Marks a disposable as not being used anymore.
|
void |
releaseAll()
Releases all bound
Disposable s. |
boolean bind(Disposable disposable)
disposable
- to bindboolean release(Disposable disposable)
disposable
- to releasevoid releaseAll() throws BaseException
Disposable
s.BaseException
- if there is an error disposing any of the bound disposablesint getBoundDisposableCount()
Set getBoundDisposables()
Set
of Disposable
objects currently bound.