quotaOrNull

fun quotaOrNull(replica: ReplicaId): Long?

quota, or null when it does not fit in a Long.

For a caller that has to carry on whatever one replica holds, such as a coordinator ranking peers inside a long-lived pump: a quota past Long.MAX_VALUE is a null to handle there, not an exception that ends the pump. trySpend and transfer keep every replica's quota at or above 0, so a null means more than Long.MAX_VALUE.