|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DisposableManager
Manages the use and dispose of Disposable
objects.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean bind(Disposable disposable)
disposable
- to bind
boolean release(Disposable disposable)
disposable
- to release
void 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |