Class ExponentialBackoffStrategy

java.lang.Object
org.camunda.bpm.client.backoff.ExponentialBackoffStrategy
All Implemented Interfaces:
BackoffStrategy

public class ExponentialBackoffStrategy extends Object implements BackoffStrategy

Provides an exponential backoff strategy.

Author:
Nikola Koevski
  • Field Details

    • initTime

      protected long initTime
    • factor

      protected float factor
    • level

      protected int level
    • maxTime

      protected long maxTime
  • Constructor Details

    • ExponentialBackoffStrategy

      public ExponentialBackoffStrategy()
    • ExponentialBackoffStrategy

      public ExponentialBackoffStrategy(long initTime, float factor, long maxTime)
      Parameters:
      initTime - in milliseconds for which the client is suspended after the first request
      factor - is the base of the power by which the waiting time increases
      maxTime - in milliseconds for which the client can be suspended
  • Method Details