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
,ConnectedService
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
AddToCacheService
,CheckCacheService
,RetrieveFromCacheService
public abstract class CacheServiceBase extends CacheServiceImpl
Base class that provides common functions used by all cache services
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description CacheServiceBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCacheEntryEvaluator(CacheEntryEvaluator generator)
protected void
addCacheValueToMessage(AdaptrisMessage msg, java.lang.String key, CacheValueTranslator cvt, boolean quietly)
Retrieves the value from the cache and then stores it against the message using the supplied value translatorjava.util.List<CacheEntryEvaluator>
getCacheEntryEvaluators()
void
setCacheEntryEvaluators(java.util.List<CacheEntryEvaluator> list)
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, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, 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, doService, isBranching, setUniqueId
-
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
-
-
-
Method Detail
-
getCacheEntryEvaluators
public java.util.List<CacheEntryEvaluator> getCacheEntryEvaluators()
-
setCacheEntryEvaluators
public void setCacheEntryEvaluators(java.util.List<CacheEntryEvaluator> list)
Set the list of evaluators that will be used to for generate keys for accessing the cache.
-
addCacheEntryEvaluator
public void addCacheEntryEvaluator(CacheEntryEvaluator generator)
-
addCacheValueToMessage
protected void addCacheValueToMessage(AdaptrisMessage msg, java.lang.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
-
-