|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWSCacheManager
Interface for implementing a manager for wsclient library caching Items are split into the caches based upon:
Method Summary | |
---|---|
void |
enableCache(boolean enabled)
Either enable or disable cache |
void |
flushAllCaches()
Flush all caches for all interfaces |
void |
flushCache(IWSProxyFactory factory)
Flush the cache associated with the specified factory |
WSLruCache |
getCache(IWSProxyFactory factory)
Obtain a Cache for a specific proxy factory This is mostly for testing purposes and you should not need to talk to directly to the WSLruCache |
IWSCacheKey |
getCacheKey(IWSClientSession session,
Method method,
Object[] args)
Generate a cache key based on the input information |
Object |
getCacheValue(IWSCacheKey cacheKey,
IWSProxyFactory factory)
Get the value stored in the cache for a given key |
boolean |
isEnabled()
Determine that the cache is enabled or disabled |
void |
putCacheValue(IWSCacheKey cacheKey,
Object value,
IWSProxyFactory factory)
Put the data into the cache |
Method Detail |
---|
IWSCacheKey getCacheKey(IWSClientSession session, Method method, Object[] args)
session
- the current sessionmethod
- the target methodargs
- the params for that method invocationObject getCacheValue(IWSCacheKey cacheKey, IWSProxyFactory factory)
cacheKey
- see IWSCacheManager.getCacheKey(com.webmethods.caf.wsclient.session.IWSClientSession, java.lang.reflect.Method, Object[])
void putCacheValue(IWSCacheKey cacheKey, Object value, IWSProxyFactory factory)
cacheKey
- the key generated by calls to IWSCacheManager.getCacheKey(com.webmethods.caf.wsclient.session.IWSClientSession, java.lang.reflect.Method, java.lang.Object[])
value
- the web service invoke resultsfactory
- the factory that created the proxy that invoked the webserviceIWSCacheManager.getCacheKey(com.webmethods.caf.wsclient.session.IWSClientSession, java.lang.reflect.Method, Object[])
WSLruCache getCache(IWSProxyFactory factory)
factory
- void enableCache(boolean enabled)
enabled
- boolean isEnabled()
void flushCache(IWSProxyFactory factory)
void flushAllCaches()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |