public static class ERXLazyValue.TimedInvalidator extends Object implements ERXLazyValue.Invalidator
| Constructor and Description |
|---|
TimedInvalidator(long timeToLiveInMillis)
Constructs a new TimedInvalidator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fetchedValue(Object value)
Called when the lazy value is refetched from the source.
|
boolean |
shouldInvalidate()
Returns whether or not the lazy value should invalidate its cache.
|
public TimedInvalidator(long timeToLiveInMillis)
timeToLiveInMillis - the time-to-live in millisecondspublic void fetchedValue(Object value)
ERXLazyValue.InvalidatorfetchedValue in interface ERXLazyValue.Invalidatorvalue - the new valuepublic boolean shouldInvalidate()
ERXLazyValue.InvalidatorshouldInvalidate in interface ERXLazyValue.InvalidatorCopyright © 2002 – 2020 Project Wonder.