Class Backoff

java.lang.Object
org.apache.pulsar.io.kinesis.Backoff

public class Backoff extends Object
All variables are in TimeUnit millis by default.
  • Field Details

    • DEFAULT_INTERVAL_IN_NANOSECONDS

      public static final long DEFAULT_INTERVAL_IN_NANOSECONDS
    • MAX_BACKOFF_INTERVAL_NANOSECONDS

      public static final long MAX_BACKOFF_INTERVAL_NANOSECONDS
  • Constructor Details

    • Backoff

      public Backoff(long initial, TimeUnit unitInitial, long max, TimeUnit unitMax, long mandatoryStop, TimeUnit unitMandatoryStop)
  • Method Details

    • next

      public long next()
    • reduceToHalf

      public void reduceToHalf()
    • reset

      public void reset()