Class DefaultBackoffSchedule

java.lang.Object
app.l2nx.gs.adapter.core.connect.DefaultBackoffSchedule
All Implemented Interfaces:
BackoffSchedule

public final class DefaultBackoffSchedule extends Object implements BackoffSchedule
Canonical retry schedule: 30s → 1m → 2m → 5m, capped at 5m for all subsequent attempts. Each emitted delay carries ±25% uniform jitter so a platform-wide outage doesn't thundering-herd N adapter instances onto the same broker tick.
  • Constructor Details

    • DefaultBackoffSchedule

      public DefaultBackoffSchedule()
  • Method Details

    • next

      public Duration next(int attempt)
      Specified by:
      next in interface BackoffSchedule
      Parameters:
      attempt - 1-based retry index (attempt 1 = first retry after the initial failure)
      Returns:
      the delay before the next retry attempt