Class RetryingCallable<V>

java.lang.Object
io.debezium.embedded.async.RetryingCallable<V>
All Implemented Interfaces:
Callable<V>
Direct Known Subclasses:
AsyncEmbeddedEngine.PollRecords

public abstract class RetryingCallable<V> extends Object implements Callable<V>
Extension to Callable, which allows to re-try the action if exception is thrown during the execution. The action is re-tried retries number of times. The delay between retries is defined by DelayStrategy, which needs to be provided by the implementing class.
Author:
vjuranek
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • retries

      private final int retries
  • Constructor Details

    • RetryingCallable

      public RetryingCallable(int retries)
  • Method Details