Package org.apache.camel.resume
Interface ResumeStrategyConfigurationBuilder<T extends ResumeStrategyConfigurationBuilder,Y extends ResumeStrategyConfiguration>
-
- Type Parameters:
T- TheResumeStrategyConfigurationBuilderproviding the custom configurationY- The type of theResumeStrategyConfigurationthat will be built by the builder
public interface ResumeStrategyConfigurationBuilder<T extends ResumeStrategyConfigurationBuilder,Y extends ResumeStrategyConfiguration>Provides a basic interface for implementing component-specific configuration builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ybuild()Builds the resume strategy configurationTwithCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)Sets theCacheable.FillPolicyfor the cache used in the strategyTwithResumeCache(ResumeCache<?> resumeCache)Sets the local resume cache instance to use in the strategy
-
-
-
Method Detail
-
withCacheFillPolicy
T withCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)
Sets theCacheable.FillPolicyfor the cache used in the strategy- Parameters:
cacheFillPolicy- the fill policy to use- Returns:
- this instance
-
withResumeCache
T withResumeCache(ResumeCache<?> resumeCache)
Sets the local resume cache instance to use in the strategy- Parameters:
resumeCache- the local resume cache instance to use in the strategy- Returns:
- this instance
-
build
Y build()
Builds the resume strategy configuration- Returns:
- a new instance of the resume strategy configuration
-
-