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.Invalidator
fetchedValue
in interface ERXLazyValue.Invalidator
value
- the new valuepublic boolean shouldInvalidate()
ERXLazyValue.Invalidator
shouldInvalidate
in interface ERXLazyValue.Invalidator
Copyright © 2002 – 2020 Project Wonder.