er.extensions.foundation
Class ERXLazyValue.ThreadStorageCacheKeyInvalidator
java.lang.Object
er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
er.extensions.foundation.ERXLazyValue.MutableCacheKeyInvalidator
er.extensions.foundation.ERXLazyValue.ThreadStorageCacheKeyInvalidator
- All Implemented Interfaces:
- ERXLazyValue.Invalidator
- Enclosing class:
- ERXLazyValue<T>
public static class ERXLazyValue.ThreadStorageCacheKeyInvalidator
- extends ERXLazyValue.MutableCacheKeyInvalidator
ThreadStorageCacheKeyInvalidator triggers a cache invalidation when the
value of the specified key changes in the ERXThreadStorage.
- Author:
- mschrag
|
Method Summary |
protected Object |
cacheKey()
Returns the current value of the cache key. |
void |
setCacheKey(Object value)
Sets the current value of the cache key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXLazyValue.ThreadStorageCacheKeyInvalidator
public ERXLazyValue.ThreadStorageCacheKeyInvalidator(String key)
cacheKey
protected Object cacheKey()
- Description copied from class:
ERXLazyValue.CacheKeyInvalidator
- Returns the current value of the cache key.
- Specified by:
cacheKey in class ERXLazyValue.CacheKeyInvalidator
- Returns:
- the current value of the cache key
setCacheKey
public void setCacheKey(Object value)
- Description copied from class:
ERXLazyValue.MutableCacheKeyInvalidator
- Sets the current value of the cache key.
- Specified by:
setCacheKey in class ERXLazyValue.MutableCacheKeyInvalidator
- Parameters:
value - the current value of the cache key
Copyright © 2002 – 2007 Project Wonder.