Package org.cache2k.addon
Class UniversalResilienceConfig
- java.lang.Object
-
- org.cache2k.addon.UniversalResilienceConfig
-
- All Implemented Interfaces:
org.cache2k.config.BeanMarker
,org.cache2k.config.ConfigBean<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
,org.cache2k.config.ConfigSection<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
public class UniversalResilienceConfig extends Object implements org.cache2k.config.ConfigSection<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
Configuration parameters for the universal resilience policy.- Author:
- Jens Wilke
- See Also:
UniversalResiliencePolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UniversalResilienceConfig.Builder
-
Constructor Summary
Constructors Constructor Description UniversalResilienceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UniversalResilienceConfig.Builder
builder()
double
getBackoffMultiplier()
@Nullable Duration
getMaxRetryInterval()
@Nullable Duration
getMinRetryInterval()
@Nullable Duration
getResilienceDuration()
@Nullable Duration
getRetryInterval()
int
getRetryPercentOfResilienceDuration()
void
setBackoffMultiplier(double backoffMultiplier)
void
setMaxRetryInterval(@Nullable Duration v)
void
setMinRetryInterval(@Nullable Duration minRetryInterval)
void
setResilienceDuration(@Nullable Duration v)
void
setRetryInterval(@Nullable Duration v)
void
setRetryPercentOfResilienceDuration(int retryPercentOfResilienceDuration)
-
-
-
Method Detail
-
getRetryInterval
@Nullable public @Nullable Duration getRetryInterval()
-
setRetryInterval
public void setRetryInterval(@Nullable @Nullable Duration v)
-
getMaxRetryInterval
@Nullable public @Nullable Duration getMaxRetryInterval()
-
setMaxRetryInterval
public void setMaxRetryInterval(@Nullable @Nullable Duration v)
-
getResilienceDuration
@Nullable public @Nullable Duration getResilienceDuration()
-
setResilienceDuration
public void setResilienceDuration(@Nullable @Nullable Duration v)
-
getBackoffMultiplier
public double getBackoffMultiplier()
-
setBackoffMultiplier
public void setBackoffMultiplier(double backoffMultiplier)
-
getRetryPercentOfResilienceDuration
public int getRetryPercentOfResilienceDuration()
-
setRetryPercentOfResilienceDuration
public void setRetryPercentOfResilienceDuration(int retryPercentOfResilienceDuration)
-
getMinRetryInterval
@Nullable public @Nullable Duration getMinRetryInterval()
-
setMinRetryInterval
public void setMinRetryInterval(@Nullable @Nullable Duration minRetryInterval)
-
builder
public UniversalResilienceConfig.Builder builder()
- Specified by:
builder
in interfaceorg.cache2k.config.ConfigBean<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
- Specified by:
builder
in interfaceorg.cache2k.config.ConfigSection<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
-
-