Type Alias PolynomialBackoffSettings

PolynomialBackoffSettings: {
    degree?: number;
    jitter?: number | null;
    maxDelay?: ITimeSpan;
    minDelay?: ITimeSpan;
}

IMPORT_PATH: "@daiso-tech/core/backoff-policies"

Type declaration

  • Optionaldegree?: number
    2
    
  • Optionaljitter?: number | null

    You can pass jitter value to ensure the backoff will not execute at the same time. If you pas null you can disable the jitrter.

    0.5
    
  • OptionalmaxDelay?: ITimeSpan
    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromSeconds(60)
  • OptionalminDelay?: ITimeSpan
    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromSeconds(1)