BoundedCounterTransferConfig

data class BoundedCounterTransferConfig(val lowWaterThreshold: Long = 0, val requestedAmount: Long = 10, val surplusFloor: Long = 0, val maxRetries: Int = 3, val initialRetryDelay: Duration = 2.seconds)

Configuration for BoundedCounterTransferCoordinator.

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.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard