trySpend
Try to spend amount on behalf of replica. Returns a Patch when the spend is within replica's current quota; null otherwise. The caller's state is unchanged in either case — apply the patch with piece to commit. amount must be positive.
Throws
if amount is not positive.
if replica's spent slot would pass Long.MAX_VALUE (#3318).