Interface: RetryPolicy
TypeScript 0.4.0 · Source commit cbff27b8a34e1384384018680e46c20d5c610cc9. Generated with reviewed comment corrections; see generation notes.
Defined in: types.ts:216
Retry policy for database operations
This page documents a structural type referenced by the package API. RetryPolicy is a documentation label, not a named export from postgremq. Use type inference or the exported option types in application code.
Properties
backoffMultiplier
backoffMultiplier:
number
Defined in: types.ts:222
Backoff multiplier for each subsequent retry. Default 2.
initialBackoffMs
initialBackoffMs:
number
Defined in: types.ts:220
Initial backoff delay in milliseconds. Default 100.
maxAttempts
maxAttempts:
number
Defined in: types.ts:218
Maximum total attempts, including the first call. Default 5 when the connection retry policy is omitted; 1 means no retry.
maxBackoffMs
maxBackoffMs:
number
Defined in: types.ts:224
Maximum backoff delay in milliseconds. Default 5000.