|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--com.autonomy.client.AciCache
AciCache
controls the caching of requests within the ACI api. You should use it to specify which ACI
action are cached and when/how they are removed from the cache.
It's a singleton class, which gets instantiated internally the first time it is used.
Method Summary | |
static void |
addAction(java.lang.String sAction,
java.lang.String[] saInvalidates,
long lnExpiryMS,
java.lang.String sUniqueParameter)
Details specific cause-effect cases for caching For example, you might wish to cache the UAServer action 'UserReadAgentList' for speed when reading a user's agent list. |
static void |
setCachingTime(long lCachingTime)
Set the maximum time for which ACI requests are cached. |
static void |
setLogfileName(java.lang.String sLogfileName)
Specify the path and name for the caching events logfile. |
static void |
turnLoggingOff()
Stop logging caching events. |
static void |
turnLoggingOn()
Start logging caching events. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void addAction(java.lang.String sAction, java.lang.String[] saInvalidates, long lnExpiryMS, java.lang.String sUniqueParameter)
AciCache.addAction("userreadagentlist", null, -1, "username");
AciCache.addAction("agentadd", new String[]{"userreadagentlist"}, 0, "username");
sAction
- The action to cache. Case insensitive.saInvalidates
- An array of actions that will be deleted from the cache when an sAction command is sent, if they contain the same value for the sUniqueParameter action parameter as the sAction command does. Set null to not invalidate any other actions.lnExpiryMS
- Maximum length of time that this action is stored in the cache:sUniqueParameter
- When an action containing a saInvalidates array is received, the cache removes all responses that match the conditions:public static void setCachingTime(long lCachingTime)
lCachingTime
- the time for which requests are cached in milliseconds. 0 turns off the cache.public static void setLogfileName(java.lang.String sLogfileName)
turnLoggingOn
and turnLoggingOff
.
public static void turnLoggingOn()
setLogfileName
before
any logging will occure.
public static void turnLoggingOff()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |