|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DisposableResourceManager
DisposableResourceManager defines the interface for managers of disposable
resources.
A DisposableResourceManager implements a strategy for efficient disposal
of seldom used resources.
| Method Summary | |
|---|---|
java.util.Iterator |
getResources()
Returns an iterator on the managed resources |
boolean |
managesResource(DisposableResourceHolder resource)
True if the resource is registered with this manager |
void |
registerResource(DisposableResourceHolder resource)
Registers a resource with the manager so as to be disposed |
void |
startDisposing()
Activates the strategy which starts disposing of resources as fitted |
void |
stopDisposing(long millis)
Deactivates the strategy that stops automatic disposal of resource. The millis parameters specifies in milliseconds the time to wait for the disposal to stop. |
void |
unregisterResource(DisposableResourceHolder resource)
Unregisters a resource so it is not automatically GCed. |
| Method Detail |
|---|
void registerResource(DisposableResourceHolder resource)
resource - the resourcevoid unregisterResource(DisposableResourceHolder resource)
resource - the resourcejava.util.Iterator getResources()
boolean managesResource(DisposableResourceHolder resource)
resource - The resource
void startDisposing()
throws ResourceManagerNotSetException
ResourceManagerNotSetException - Description of the Exceptionvoid stopDisposing(long millis)
millis - time to wait for disposal to stop
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||