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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Y
build()
Builds the resume strategy configurationT
withCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)
Sets theCacheable.FillPolicy
for the cache used in the strategyT
withResumeCache(ResumeCache<?> resumeCache)
Sets the local resume cache instance to use in the strategy
-
-
-
Method Detail
-
withCacheFillPolicy
T withCacheFillPolicy(Cacheable.FillPolicy cacheFillPolicy)
Sets theCacheable.FillPolicy
for 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
-
-