Package dev.vality.kafka.common.retry
Class ConfigurableRetryPolicy
java.lang.Object
dev.vality.kafka.common.retry.ConfigurableRetryPolicy
- All Implemented Interfaces:
Serializable,org.springframework.retry.RetryPolicy
public class ConfigurableRetryPolicy extends Object implements org.springframework.retry.RetryPolicy
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ConfigurableRetryPolicy(int maxAttempts, Map<Class<? extends Throwable>,Boolean> retryableExceptions)ConfigurableRetryPolicy(int maxAttempts, Map<Class<? extends Throwable>,Boolean> retryableExceptions, boolean traverseCauses, boolean defaultValue) -
Method Summary
Modifier and Type Method Description booleancanRetry(org.springframework.retry.RetryContext context)voidclose(org.springframework.retry.RetryContext context)org.springframework.classify.BinaryExceptionClassifiergetRetryableClassifier()org.springframework.retry.RetryContextopen(org.springframework.retry.RetryContext parent)voidregisterThrowable(org.springframework.retry.RetryContext context, Throwable throwable)StringtoString()
-
Constructor Details
-
ConfigurableRetryPolicy
-
ConfigurableRetryPolicy
-
-
Method Details
-
getRetryableClassifier
public org.springframework.classify.BinaryExceptionClassifier getRetryableClassifier() -
canRetry
public boolean canRetry(org.springframework.retry.RetryContext context)- Specified by:
canRetryin interfaceorg.springframework.retry.RetryPolicy
-
open
public org.springframework.retry.RetryContext open(org.springframework.retry.RetryContext parent)- Specified by:
openin interfaceorg.springframework.retry.RetryPolicy
-
close
public void close(org.springframework.retry.RetryContext context)- Specified by:
closein interfaceorg.springframework.retry.RetryPolicy
-
registerThrowable
- Specified by:
registerThrowablein interfaceorg.springframework.retry.RetryPolicy
-
toString
-