Class NanosecondPauseBatchRewindStrategy

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

public class NanosecondPauseBatchRewindStrategy extends Object implements BatchRewindStrategy

Strategy for handling a rewindableException that will pause for a specified amount of nanos.

  • Field Details

    • nanoSecondPauseTime

      private final long nanoSecondPauseTime
  • Constructor Details

    • NanosecondPauseBatchRewindStrategy

      public NanosecondPauseBatchRewindStrategy(long nanoSecondPauseTime)

      Strategy for handling a rewindableException that will pause for a specified amount of nanos.

      Parameters:
      nanoSecondPauseTime - Amount of nanos to pause for when a rewindable exception is thrown
  • Method Details