Class PollingOptions

    • Method Detail

      • getBackoffMultiplier

        public Double getBackoffMultiplier()
        Multiplier applied to intervalSec after each poll attempt to implement exponential backoff. Must be ≥ 1.0. A value of 1.0 disables backoff.
      • getMaxIntervalSec

        public Double getMaxIntervalSec()
        Upper bound (in seconds) for the polling interval after backoff is applied. Must be ≥ intervalSec.
      • getCancelToken

        public BooleanSupplier getCancelToken()
        Optional cancellation signal. When it evaluates to true, polling is aborted with a CancellationException. Also, interrupting the polling thread cancels the operation.