Class Jitter.Context

java.lang.Object
io.awspring.cloud.sqs.listener.errorhandler.Jitter.Context
Enclosing interface:
Jitter

public static class Jitter.Context extends Object
Context for jitter calculations.
  • Constructor Details

    • Context

      public Context(int timeout, Supplier<Random> randomSupplier)
      Create a new Context instance.
      Parameters:
      timeout - the timeout value (must be >= 1)
      randomSupplier - the random supplier (must not be null)
  • Method Details

    • getTimeout

      public int getTimeout()
    • getRandomSupplier

      public Supplier<Random> getRandomSupplier()