Package com.adaptris.core.services.cache
Class CheckAndRetrieve
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.cache.CacheServiceImpl
-
- com.adaptris.core.services.cache.CacheServiceBase
-
- com.adaptris.core.services.cache.CheckCacheService
-
- com.adaptris.core.services.cache.CheckAndRetrieve
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Check the cache for a key and retrieve it if it exists", tag="service,cache", branchSelector=true, since="3.6.4", recommended=CacheConnection.class) public class CheckAndRetrieve extends CheckCacheService
Service
implementation that checks if specific key(s) exist in the cache and retrieves.- Since:
- 3.6.4
In the adapter configuration file this class is aliased as check-cache-and-retrieve which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adaptris.core.services.cache.CheckCacheService
CheckCacheService.FoundInCache
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description CheckAndRetrieve()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
eval(AdaptrisMessage msg)
-
Methods inherited from class com.adaptris.core.services.cache.CheckCacheService
doService, eval, getKeysFoundServiceId, getKeysNotFoundServiceId, isBranching, setKeysFoundServiceId, setKeysNotFoundServiceId
-
Methods inherited from class com.adaptris.core.services.cache.CacheServiceBase
addCacheEntryEvaluator, addCacheValueToMessage, getCacheEntryEvaluators, setCacheEntryEvaluators
-
Methods inherited from class com.adaptris.core.services.cache.CacheServiceImpl
closeService, getConnection, initService, prepare, retrieveCache, setConnection, start, stop, withConnection
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init
-
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, setUniqueId
-
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
-
-
-
Method Detail
-
eval
protected boolean eval(AdaptrisMessage msg) throws CoreException
- Overrides:
eval
in classCheckCacheService
- Throws:
CoreException
-
-