BoundedCounterTransferConfig

constructor(lowWaterThreshold: Long = 0, requestedAmount: Long = 10, surplusFloor: Long = 0, maxRetries: Int = 3, initialRetryDelay: Duration = 2.seconds)

Parameters

lowWaterThreshold

when BoundedCounter.quota for the local replica drops to or below this value, a BoundedCounterCoordMessage.TransferRequest is sent to the top surplus peer(s).

requestedAmount

how many quota units to request in each BoundedCounterCoordMessage.TransferRequest.

surplusFloor

the minimum quota a donor will retain after a transfer. A donor with quota(self) <= surplusFloor will not donate.

maxRetries

how many times to retry a BoundedCounterCoordMessage.TransferRequest before giving up and degrading to "deny locally". Each retry doubles the backoff interval.

initialRetryDelay

delay before the first retry.