MCPcopy
hub / github.com/netdata/netdata / ExponentialBackoff

Struct ExponentialBackoff

src/go/plugin/ibm.d/framework/protocols.go:163–170  ·  view source on GitHub ↗

ExponentialBackoff implements retry logic with backoff

Source from the content-addressed store, hash-verified

161
162// ExponentialBackoff implements retry logic with backoff
163type ExponentialBackoff struct {
164 InitialInterval time.Duration
165 MaxInterval time.Duration
166 Multiplier float64
167 currentInterval time.Duration
168 attempt int
169 protocol *ProtocolClient // For logging
170}
171
172// NewExponentialBackoff creates a new backoff handler
173func NewExponentialBackoff() *ExponentialBackoff {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected