org.onebusaway.container.cache
Class CacheKeyInfo

java.lang.Object
  extended by 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
CacheKeyInfo(Serializable key, boolean cacheRefreshIndicated)
           
 
Method Summary
 Serializable getKey()
           
 boolean isCacheRefreshIndicated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheKeyInfo

public CacheKeyInfo(Serializable key,
                    boolean cacheRefreshIndicated)
Parameters:
key - the serializable cache key generated for the method call
cacheRefreshIndicated - 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


Copyright © 2012 OneBusAway. All Rights Reserved.