Project Wonder 5.0

er.extensions.foundation
Class ERXLazyValue.MutableCacheKeyInvalidator

java.lang.Object
  extended by er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
      extended by 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

Constructor Summary
ERXLazyValue.MutableCacheKeyInvalidator()
           
 
Method Summary
protected abstract  void setCacheKey(java.lang.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 er.extensions.foundation.ERXLazyValue.CacheKeyInvalidator
cacheKey, fetchedValue, shouldInvalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXLazyValue.MutableCacheKeyInvalidator

public ERXLazyValue.MutableCacheKeyInvalidator()
Method Detail

setCacheKey

protected abstract void setCacheKey(java.lang.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.


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

Copyright © 2002 – 2007 Project Wonder.