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 Details

    • ConfigurableRetryPolicy

      public ConfigurableRetryPolicy​(int maxAttempts, Map<Class<? extends Throwable>,​Boolean> retryableExceptions)
    • ConfigurableRetryPolicy

      public ConfigurableRetryPolicy​(int maxAttempts, Map<Class<? extends Throwable>,​Boolean> retryableExceptions, boolean traverseCauses, boolean defaultValue)
  • Method Details

    • getRetryableClassifier

      public org.springframework.classify.BinaryExceptionClassifier getRetryableClassifier()
    • canRetry

      public boolean canRetry​(org.springframework.retry.RetryContext context)
      Specified by:
      canRetry in interface org.springframework.retry.RetryPolicy
    • open

      public org.springframework.retry.RetryContext open​(org.springframework.retry.RetryContext parent)
      Specified by:
      open in interface org.springframework.retry.RetryPolicy
    • close

      public void close​(org.springframework.retry.RetryContext context)
      Specified by:
      close in interface org.springframework.retry.RetryPolicy
    • registerThrowable

      public void registerThrowable​(org.springframework.retry.RetryContext context, Throwable throwable)
      Specified by:
      registerThrowable in interface org.springframework.retry.RetryPolicy
    • toString

      public String toString()
      Overrides:
      toString in class Object