@ComponentProfile(summary="Retrieve values from the cache",
tag="service,cache",
recommended=CacheConnection.class)
public class RetrieveFromCacheService
extends CacheServiceBase
CacheEntryEvaluator instances.
This service uses its configured CacheEntryEvaluator instances to lookup keys stored in the cache, retrieves the value
and then stores it against the message using the supplied value translator.
In the adapter configuration file this class is aliased as retrieve-from-cache which is the preferred alternative to the fully qualified classname when building your configuration.
log| Constructor and Description |
|---|
RetrieveFromCacheService() |
| Modifier and Type | Method and Description |
|---|---|
void |
doService(AdaptrisMessage msg)
Looks up an object from the cache and then stores it in the metadata
|
java.lang.Boolean |
getExceptionIfNotFound() |
void |
setExceptionIfNotFound(java.lang.Boolean b)
Whether or not to throw an exception if the key is not in the cache.
|
addCacheEntryEvaluator, addCacheValueToMessage, getCacheEntryEvaluators, setCacheEntryEvaluatorscloseService, getConnection, initService, prepare, retrieveCache, setConnection, start, stop, withConnectionchangeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontinueOnFailure, isBranching, setUniqueIdcreateName, createQualifier, isTrackingEndpointchangeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentStategetUniqueIdclose, initpublic void doService(AdaptrisMessage msg) throws ServiceException
msg - the AdaptrisMessage to processServiceException - wrapping any underlying Exceptionspublic java.lang.Boolean getExceptionIfNotFound()
public void setExceptionIfNotFound(java.lang.Boolean b)
b - default is true.