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.
|
java.util.Set<DisposableInfo> |
getBoundDisposables()
Returns a
Set of Disposable objects currently bound. |
DisposableInfo |
getDisposableInfo(Disposable disposable) |
int |
getStackLimit() |
boolean |
release(Disposable disposable)
Marks a disposable as not being used anymore.
|
void |
releaseAll()
Releases all bound
Disposable s. |
void |
setStackLimit(int limit) |
int getStackLimit()
void setStackLimit(int limit)
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()
java.util.Set<DisposableInfo> getBoundDisposables()
Set
of Disposable
objects currently bound.DisposableInfo getDisposableInfo(Disposable disposable)