@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, setCacheEntryEvaluators
closeService, getConnection, initService, prepare, retrieveCache, setConnection, start, stop, withConnection
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnFailure, isBranching, setUniqueId
createName, createQualifier, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init
public void doService(AdaptrisMessage msg) throws ServiceException
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
spublic java.lang.Boolean getExceptionIfNotFound()
public void setExceptionIfNotFound(java.lang.Boolean b)
b
- default is true.