Package org.apache.camel.resume
Interface ResumeStrategyConfigurationBuilder<T extends ResumeStrategyConfigurationBuilder,Y extends ResumeStrategyConfiguration>
- Type Parameters:
T
- TheResumeStrategyConfigurationBuilder
providing the custom configurationY
- The type of theResumeStrategyConfiguration
that 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
Modifier and TypeMethodDescriptionbuild()
Builds the resume strategy configurationwithCacheFillPolicy
(Cacheable.FillPolicy cacheFillPolicy) Sets theCacheable.FillPolicy
for the cache used in the strategywithResumeCache
(ResumeCache<?> resumeCache) Sets the local resume cache instance to use in the strategy
-
Method Details
-
withCacheFillPolicy
Sets theCacheable.FillPolicy
for the cache used in the strategy- Parameters:
cacheFillPolicy
- the fill policy to use- Returns:
- this instance
-
withResumeCache
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
-