Class EventuallyGiveUpBatchRewindStrategy

java.lang.Object
com.lmax.disruptor.EventuallyGiveUpBatchRewindStrategy
All Implemented Interfaces:
BatchRewindStrategy

public class EventuallyGiveUpBatchRewindStrategy extends Object implements BatchRewindStrategy

Strategy for handling a rewindableException that will eventually delegate the exception to the ExceptionHandler after a specified number of attempts have been made.

  • Field Details

    • maxAttempts

      private final long maxAttempts
  • Constructor Details

    • EventuallyGiveUpBatchRewindStrategy

      public EventuallyGiveUpBatchRewindStrategy(long maxAttempts)
      Parameters:
      maxAttempts - numbers of Rewindable exceptions that can be thrown until exception is delegated
  • Method Details