Package com.adaptris.core.services.cache
Class CacheServiceBase
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.services.cache.CacheServiceImpl
com.adaptris.core.services.cache.CacheServiceBase
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
AddToCacheService
,CheckCacheService
,RetrieveFromCacheService
Base class that provides common functions used by all cache services
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCacheEntryEvaluator
(CacheEntryEvaluator generator) protected void
addCacheValueToMessage
(AdaptrisMessage msg, String key, CacheValueTranslator cvt, boolean quietly) Retrieves the value from the cache and then stores it against the message using the supplied value translatorvoid
Set the list of evaluators that will be used to for generate keys for accessing the cache.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, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, 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.ConfigComment
getComments, setComments
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, doService, isBranching, setUniqueId
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
Constructor Details
-
CacheServiceBase
public CacheServiceBase()
-
-
Method Details
-
getCacheEntryEvaluators
-
setCacheEntryEvaluators
Set the list of evaluators that will be used to for generate keys for accessing the cache. -
addCacheEntryEvaluator
-
addCacheValueToMessage
protected void addCacheValueToMessage(AdaptrisMessage msg, String key, CacheValueTranslator cvt, boolean quietly) throws CoreException Retrieves the value from the cache and then stores it against the message using the supplied value translator- Throws:
CoreException
-