public interface IWSCacheManager
Modifier and Type | Method and Description |
---|---|
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
|
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 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 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 webservicegetCacheKey(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()