Project Wonder 5.0

er.extensions.foundation
Class ERXLazyValue.CacheKeyInvalidator

java.lang.Object
  extended by er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
All Implemented Interfaces:
ERXLazyValue.Invalidator
Direct Known Subclasses:
ERXLazyValue.MutableCacheKeyInvalidator
Enclosing class:
ERXLazyValue<T>

public abstract static class ERXLazyValue.CacheKeyInvalidator
extends java.lang.Object
implements ERXLazyValue.Invalidator

The base class for any invalidator that is triggered by the change in a cache key.

Author:
mschrag

Constructor Summary
ERXLazyValue.CacheKeyInvalidator()
           
 
Method Summary
protected abstract  java.lang.Object cacheKey()
          Returns the current value of the cache key.
 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

ERXLazyValue.CacheKeyInvalidator

public ERXLazyValue.CacheKeyInvalidator()
Method Detail

fetchedValue

public void fetchedValue(java.lang.Object value)
Description copied from interface: ERXLazyValue.Invalidator
Called when the lazy value is refetched from the source.

Specified by:
fetchedValue in interface ERXLazyValue.Invalidator
Parameters:
value - the new value

cacheKey

protected abstract java.lang.Object cacheKey()
Returns the current value of the cache key.

Returns:
the current value of the cache key

shouldInvalidate

public boolean shouldInvalidate()
Description copied from interface: ERXLazyValue.Invalidator
Returns whether or not the lazy value should invalidate its cache.

Specified by:
shouldInvalidate in interface ERXLazyValue.Invalidator
Returns:
whether or not the lazy value should invalidate its cache

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.