TransferRequest

@Serializable
@SerialName(value = "transferRequest")
class TransferRequest(val requester: ReplicaId, val amount: Long) : BoundedCounterCoordMessage

Sent by a replica whose local quota has dropped below its low-water threshold. Every peer receiving this may independently decide to call us.tractat.kuilt.crdt.BoundedCounter.transfer if it has surplus.

Parameters

requester

the ReplicaId asking for quota.

amount

how many units the requester would like; at least 1. The decoder runs this check too, so a frame from a peer asking for fewer is refused while it is read, before any donor acts on it.

Constructors

Link copied to clipboard
constructor(requester: ReplicaId, amount: Long)

Properties

Link copied to clipboard
Link copied to clipboard