|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceDisposabilityStrategy
ResourceDisposabilityStrategy defines the interface for resource disposal
strategies.
The strategy defines the logic used to determine which and when a resource can
be efficiently disposed of. A smarter the strategy leads to few resource
regeneration.
Method Summary | |
---|---|
DisposableResourceManager |
getManager()
Gets the manager holding the resources for this strategy |
void |
setManager(DisposableResourceManager manager)
Sets the manager holding the resources for this strategy |
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. |
Method Detail |
---|
void setManager(DisposableResourceManager manager)
manager
- The new manager valueDisposableResourceManager getManager()
void startDisposing() throws ResourceManagerNotSetException
ResourceManagerNotSetException
- Description of the Exceptionvoid stopDisposing(long millis)
millis
- time to wait for disposal to stop
|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |