Class RetryConfigurationProperties.InstanceProperties
java.lang.Object
io.github.resilience4j.common.retry.configuration.RetryConfigurationProperties.InstanceProperties
- Enclosing class:
- RetryConfigurationProperties
public static class RetryConfigurationProperties.InstanceProperties
extends java.lang.Object
Class storing property values for configuring
Retry
instances.-
Constructor Summary
Constructors Constructor Description InstanceProperties() -
Method Summary
Modifier and Type Method Description java.lang.StringgetBaseConfig()Gets the shared configuration name.java.lang.BooleangetEnableExponentialBackoff()java.lang.BooleangetEnableRandomizedWait()java.lang.IntegergetEventConsumerBufferSize()java.lang.DoublegetExponentialBackoffMultiplier()java.time.DurationgetExponentialMaxWaitDuration()java.lang.Class<? extends java.lang.Throwable>[]getIgnoreExceptions()java.lang.Class<? extends io.github.resilience4j.core.IntervalBiFunction<java.lang.Object>>getIntervalBiFunction()java.lang.IntegergetMaxAttempts()java.lang.IntegergetMaxRetryAttempts()Deprecated.use getMaxAttempts()java.lang.DoublegetRandomizedWaitFactor()java.lang.Class<? extends java.util.function.Predicate<java.lang.Object>>getResultPredicate()java.lang.Class<? extends java.util.function.Predicate<java.lang.Throwable>>getRetryExceptionPredicate()java.lang.Class<? extends java.lang.Throwable>[]getRetryExceptions()java.time.DurationgetWaitDuration()RetryConfigurationProperties.InstancePropertiessetBaseConfig(java.lang.String baseConfig)Sets the shared configuration name.RetryConfigurationProperties.InstancePropertiessetEnableExponentialBackoff(java.lang.Boolean enableExponentialBackoff)RetryConfigurationProperties.InstancePropertiessetEnableRandomizedWait(java.lang.Boolean enableRandomizedWait)RetryConfigurationProperties.InstancePropertiessetEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize)RetryConfigurationProperties.InstancePropertiessetExponentialBackoffMultiplier(java.lang.Double exponentialBackoffMultiplier)RetryConfigurationProperties.InstancePropertiessetExponentialMaxWaitDuration(java.time.Duration exponentialMaxWaitDuration)RetryConfigurationProperties.InstancePropertiessetIgnoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] ignoreExceptions)voidsetIntervalBiFunction(java.lang.Class<? extends io.github.resilience4j.core.IntervalBiFunction<java.lang.Object>> intervalBiFunction)RetryConfigurationProperties.InstancePropertiessetMaxAttempts(java.lang.Integer maxAttempts)RetryConfigurationProperties.InstancePropertiessetMaxRetryAttempts(java.lang.Integer maxRetryAttempts)Deprecated.use setMaxAttempts()RetryConfigurationProperties.InstancePropertiessetRandomizedWaitFactor(java.lang.Double randomizedWaitFactor)RetryConfigurationProperties.InstancePropertiessetResultPredicate(java.lang.Class<? extends java.util.function.Predicate<java.lang.Object>> resultPredicate)RetryConfigurationProperties.InstancePropertiessetRetryExceptionPredicate(java.lang.Class<? extends java.util.function.Predicate<java.lang.Throwable>> retryExceptionPredicate)RetryConfigurationProperties.InstancePropertiessetRetryExceptions(java.lang.Class<? extends java.lang.Throwable>[] retryExceptions)RetryConfigurationProperties.InstancePropertiessetWaitDuration(java.time.Duration waitDuration)
-
Constructor Details
-
InstanceProperties
public InstanceProperties()
-
-
Method Details
-
getWaitDuration
@Nullable public java.time.Duration getWaitDuration() -
setWaitDuration
public RetryConfigurationProperties.InstanceProperties setWaitDuration(java.time.Duration waitDuration) -
getIntervalBiFunction
@Nullable public java.lang.Class<? extends io.github.resilience4j.core.IntervalBiFunction<java.lang.Object>> getIntervalBiFunction() -
setIntervalBiFunction
public void setIntervalBiFunction(java.lang.Class<? extends io.github.resilience4j.core.IntervalBiFunction<java.lang.Object>> intervalBiFunction) -
getMaxRetryAttempts
@Nullable @Deprecated public java.lang.Integer getMaxRetryAttempts()Deprecated.use getMaxAttempts() -
getMaxAttempts
@Nullable public java.lang.Integer getMaxAttempts() -
setMaxRetryAttempts
@Deprecated public RetryConfigurationProperties.InstanceProperties setMaxRetryAttempts(java.lang.Integer maxRetryAttempts)Deprecated.use setMaxAttempts() -
setMaxAttempts
public RetryConfigurationProperties.InstanceProperties setMaxAttempts(java.lang.Integer maxAttempts) -
getRetryExceptionPredicate
@Nullable public java.lang.Class<? extends java.util.function.Predicate<java.lang.Throwable>> getRetryExceptionPredicate() -
setRetryExceptionPredicate
public RetryConfigurationProperties.InstanceProperties setRetryExceptionPredicate(java.lang.Class<? extends java.util.function.Predicate<java.lang.Throwable>> retryExceptionPredicate) -
getResultPredicate
@Nullable public java.lang.Class<? extends java.util.function.Predicate<java.lang.Object>> getResultPredicate() -
setResultPredicate
public RetryConfigurationProperties.InstanceProperties setResultPredicate(java.lang.Class<? extends java.util.function.Predicate<java.lang.Object>> resultPredicate) -
getRetryExceptions
@Nullable public java.lang.Class<? extends java.lang.Throwable>[] getRetryExceptions() -
setRetryExceptions
public RetryConfigurationProperties.InstanceProperties setRetryExceptions(java.lang.Class<? extends java.lang.Throwable>[] retryExceptions) -
getIgnoreExceptions
@Nullable public java.lang.Class<? extends java.lang.Throwable>[] getIgnoreExceptions() -
setIgnoreExceptions
public RetryConfigurationProperties.InstanceProperties setIgnoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] ignoreExceptions) -
getEventConsumerBufferSize
public java.lang.Integer getEventConsumerBufferSize() -
setEventConsumerBufferSize
public RetryConfigurationProperties.InstanceProperties setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize) -
getEnableExponentialBackoff
public java.lang.Boolean getEnableExponentialBackoff() -
setEnableExponentialBackoff
public RetryConfigurationProperties.InstanceProperties setEnableExponentialBackoff(java.lang.Boolean enableExponentialBackoff) -
getExponentialBackoffMultiplier
@Nullable public java.lang.Double getExponentialBackoffMultiplier() -
setExponentialBackoffMultiplier
public RetryConfigurationProperties.InstanceProperties setExponentialBackoffMultiplier(java.lang.Double exponentialBackoffMultiplier) -
getExponentialMaxWaitDuration
@Nullable public java.time.Duration getExponentialMaxWaitDuration() -
setExponentialMaxWaitDuration
public RetryConfigurationProperties.InstanceProperties setExponentialMaxWaitDuration(java.time.Duration exponentialMaxWaitDuration) -
getEnableRandomizedWait
@Nullable public java.lang.Boolean getEnableRandomizedWait() -
setEnableRandomizedWait
public RetryConfigurationProperties.InstanceProperties setEnableRandomizedWait(java.lang.Boolean enableRandomizedWait) -
getRandomizedWaitFactor
@Nullable public java.lang.Double getRandomizedWaitFactor() -
setRandomizedWaitFactor
public RetryConfigurationProperties.InstanceProperties setRandomizedWaitFactor(java.lang.Double randomizedWaitFactor) -
getBaseConfig
@Nullable public java.lang.String getBaseConfig()Gets the shared configuration name. If this is set, the configuration builder will use the the shared configuration backend over this one.- Returns:
- The shared configuration name.
-
setBaseConfig
Sets the shared configuration name. If this is set, the configuration builder will use the the shared configuration backend over this one.- Parameters:
baseConfig- The shared configuration name.
-