er.extensions.foundation
Class ERXLazyValue.MutableCacheKeyInvalidator
java.lang.Object
er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
er.extensions.foundation.ERXLazyValue.MutableCacheKeyInvalidator
- All Implemented Interfaces:
- ERXLazyValue.Invalidator
- Direct Known Subclasses:
- ERXLazyValue.AjaxPageUserInfoCacheKeyInvalidator, ERXLazyValue.PageUserInfoCacheKeyInvalidator, ERXLazyValue.ThreadStorageCacheKeyInvalidator
- Enclosing class:
- ERXLazyValue<T>
public abstract static class ERXLazyValue.MutableCacheKeyInvalidator
- extends ERXLazyValue.CacheKeyInvalidator
The base class for any invalidator that is triggered by the change in a
cache key with support for changing the value.
- Author:
- mschrag
|
Method Summary |
protected abstract void |
setCacheKey(Object value)
Sets the current value of the cache key. |
void |
timestamp()
Sets the current value of the cache key to be
System.currentTimeMillis. |
void |
uuid()
Sets the current value of the cache key to be a randomly generated
UUID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXLazyValue.MutableCacheKeyInvalidator
public ERXLazyValue.MutableCacheKeyInvalidator()
setCacheKey
protected abstract void setCacheKey(Object value)
- Sets the current value of the cache key.
- Parameters:
value - the current value of the cache key
uuid
public void uuid()
- Sets the current value of the cache key to be a randomly generated
UUID.
timestamp
public void timestamp()
- Sets the current value of the cache key to be
System.currentTimeMillis.
Copyright © 2002 – 2007 Project Wonder.