com.go.trove.util
Interface Depot.PerishablesFactory
- All Superinterfaces:
- Depot.Factory
- Enclosing class:
- Depot
- public static interface Depot.PerishablesFactory
- extends Depot.Factory
A special kind of Factory that creates objects that are considered
invalid after a specific amount of time has elapsed.
|
Method Summary |
long |
getValidDuration()
Returns the maximum amout of time (in milliseconds) that objects
from this factory should remain valid. |
getValidDuration
public long getValidDuration()
- Returns the maximum amout of time (in milliseconds) that objects
from this factory should remain valid. Returning a value less than
or equal to zero causes objects to be immediately invalidated.