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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2012 OneBusAway. All Rights Reserved.