|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.useroptions.UserOptionsServiceCache.ClusterSafeMethodCache
private static class UserOptionsServiceCache.ClusterSafeMethodCache
a helper class to encapsulate cluster safe cache functionality
| Field Summary | |
|---|---|
String |
cachedServiceName
|
static Object |
NULL_OBJECT
|
| Constructor Summary | |
|---|---|
UserOptionsServiceCache.ClusterSafeMethodCache(String cachedServiceName)
This constructs a ClusterSaveMethodCache |
|
| Method Summary | |
|---|---|
void |
clearCacheEntry(String principalId,
String methodName,
Object... keySource)
This method clears a cache entry for a given method call / arguments combination |
void |
clearCacheGroup(String principalId)
This method clears all cached calls for the given principal |
private String |
getCacheGroup(String principalId)
This method gets the cache group name (an entire cache group can be cleared at once) |
private String |
getCacheKey(String principalId,
String methodName,
Object... args)
build a cache key based on the user, method name and the parameters |
Object |
getFromCache(String principalId,
String methodName,
Object... keySource)
retrieves a method result from the cache. |
void |
putInCache(String principalId,
String methodName,
Object value,
Object... keySource)
caches a method result |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Object NULL_OBJECT
public final String cachedServiceName
| Constructor Detail |
|---|
public UserOptionsServiceCache.ClusterSafeMethodCache(String cachedServiceName)
cachedServiceName - a name for the service being cached| Method Detail |
|---|
private String getCacheKey(String principalId,
String methodName,
Object... args)
methodName - args -
public void putInCache(String principalId,
String methodName,
Object value,
Object... keySource)
principalId - the principal for whom the call is being cachedmethodName - the name of the method whose result is being cachedvalue - keySource - the parameters to the method call that is being cached. These are used to build the cache key, so order is important.
public Object getFromCache(String principalId,
String methodName,
Object... keySource)
principalId - the principal for whom the call is being cachedmethodName - the name of the method whose result is being cachedkeySource - the parameters to the method call that is being cached. These are used to build the cache key, so order is important.
public void clearCacheGroup(String principalId)
principalId - the principal for whom the cache is being cleared
public void clearCacheEntry(String principalId,
String methodName,
Object... keySource)
principalId - the principal for whom the cache entry is being clearedmethodName - the name of the method whose result is being cachedkeySource - the parameters to the method call that is being cached. These are used to build the cache key, so order is important.private String getCacheGroup(String principalId)
principalId - the principal whose cache group name is being generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||