|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.foundation.ERXLazyValue.TimedInvalidator
public static class ERXLazyValue.TimedInvalidator
TimedInvalidator specifies that the cached value should be invalidated after a specified duration. When the value is refetched, the timer is restarted.
| Constructor Summary | |
|---|---|
ERXLazyValue.TimedInvalidator(long timeToLiveInMillis)
Constructs a new TimedInvalidator. |
|
| Method Summary | |
|---|---|
void |
fetchedValue(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERXLazyValue.TimedInvalidator(long timeToLiveInMillis)
timeToLiveInMillis - the time-to-live in milliseconds| Method Detail |
|---|
public void fetchedValue(java.lang.Object value)
ERXLazyValue.Invalidator
fetchedValue in interface ERXLazyValue.Invalidatorvalue - the new valuepublic boolean shouldInvalidate()
ERXLazyValue.Invalidator
shouldInvalidate in interface ERXLazyValue.Invalidator
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||