org.onebusaway.container.cache
public class DefaultCacheableObjectKeyFactory extends Object implements CacheableObjectKeyFactory, Serializable
Serializable
cache key from a and arbitrary
object. This default implementation just uses the Object.toString()
representation of the object as the cache key.CacheableObjectKeyFactory
,
DefaultCacheableKeyFactory
,
Serialized FormConstructor and Description |
---|
DefaultCacheableObjectKeyFactory() |
Modifier and Type | Method and Description |
---|---|
CacheKeyInfo |
createKey(Object object) |
boolean |
isCacheRefreshCheck() |
void |
setCacheRefreshCheck(boolean cacheRefreshCheck)
Set to true if we should check the object value to indicate a cache
refresh.
|
public void setCacheRefreshCheck(boolean cacheRefreshCheck)
Boolean.TRUE
.cacheRefreshCheck
- true if the object argument should be examined to
flag a cache refreshpublic boolean isCacheRefreshCheck()
public CacheKeyInfo createKey(Object object)
createKey
in interface CacheableObjectKeyFactory
Copyright © 2014 OneBusAway. All Rights Reserved.