Package org.onebusaway.container.cache
Class CacheKeyInfo
- java.lang.Object
-
- org.onebusaway.container.cache.CacheKeyInfo
-
- All Implemented Interfaces:
Serializable
public final class CacheKeyInfo extends Object implements Serializable
Encapsulates cache key information, including the cache key for a particular method call and whether the cache should be refreshed for a particular method call.- Author:
- bdferris
- See Also:
CacheableMethodKeyFactory,CacheableObjectKeyFactory, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheKeyInfo(Serializable key, boolean cacheRefreshIndicated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablegetKey()booleanisCacheRefreshIndicated()
-
-
-
Constructor Detail
-
CacheKeyInfo
public CacheKeyInfo(Serializable key, boolean cacheRefreshIndicated)
- Parameters:
key- the serializable cache key generated for the method callcacheRefreshIndicated- true if the specified method call indicates that the cache should be cleared, otherwise false
-
-
Method Detail
-
getKey
public Serializable getKey()
- Returns:
- the serializable cache key generated for the method call
-
isCacheRefreshIndicated
public boolean isCacheRefreshIndicated()
- Returns:
- true if the specified method call indicates that the cache should be cleared, otherwise false
-
-