Package org.apache.camel.resume
Class ResumeStrategyConfiguration
- java.lang.Object
-
- org.apache.camel.resume.ResumeStrategyConfiguration
-
public abstract class ResumeStrategyConfiguration extends Object
Basic configuration holder for resume strategies
-
-
Constructor Summary
Constructors Constructor Description ResumeStrategyConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Cacheable.FillPolicy
getCacheFillPolicy()
Gets theCacheable.FillPolicy
for the cache used in the strategyResumeCache<?>
getResumeCache()
abstract String
resumeStrategyService()
Allows the implementation to provide custom strategy service factories.void
setCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)
Sets theCacheable.FillPolicy
for the cache used in the strategyvoid
setResumeCache(ResumeCache<?> resumeCache)
-
-
-
Method Detail
-
getCacheFillPolicy
public Cacheable.FillPolicy getCacheFillPolicy()
Gets theCacheable.FillPolicy
for the cache used in the strategy- Returns:
- the fill policy to use
-
setCacheFillPolicy
public void setCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)
Sets theCacheable.FillPolicy
for the cache used in the strategy- Parameters:
cacheFillPolicy
- the fill policy to use
-
resumeStrategyService
public abstract String resumeStrategyService()
Allows the implementation to provide custom strategy service factories. It binds to service name provided in theJdkService
strategy .This allows the strategy to be resolved automatically in runtime while also allowing fallback to manually constructed strategies when necessary- Returns:
-
getResumeCache
public ResumeCache<?> getResumeCache()
-
setResumeCache
public void setResumeCache(ResumeCache<?> resumeCache)
-
-