Interface SpendReserveRequest

interface SpendReserveRequest {
    accountId: string;
    operationId: string;
    units?: number;
    requireFence?: boolean;
    now?: number;
}

Properties

accountId: string
operationId: string

The product's durable id for the request; a retry with the same id replays the reservation.

units?: number

Units to reserve. Default 1.

requireFence?: boolean

A reservation only an opted-in reconcile may settle once its lease runs out: a meter without resolveExpired leaves it reserved and counted, so a legacy sweeper over the same tables cannot consume or release it. An explicit settle() still settles it. Default false.

now?: number

The clock, in epoch milliseconds; for tests.