Stores a new entry.
The entry; its envelope must not carry invocation_token.
Releases the store; closing twice is harmless.
Returns the entries of a run in seq order (ephemeral entries last, in arrival order).
The run.
Returns the entry of eventId.
The envelope id.
The entry, or undefined when it is not stored.
Returns the entries in one of states in seq order (ephemeral entries last, in arrival
order).
The states asked for.
Returns whether jti is remembered beyond nowMs.
The token ID.
The current wall time.
Drops the jti rows that expired at nowMs; inbox entries stay.
The current wall time.
Counts a redelivery and keeps the newer token while the entry is accepted.
The token replaces the stored one when the entry is accepted and iat is not older than
the stored iat (an equal iat takes this later arrival).
The envelope id.
The token of the redelivery, if any.
Its iat.
Its jti.
The entry after the update.
Remembers jti until untilMs (an earlier end never shortens a later one).
The token ID.
exp plus adapter.invocation_token_leeway.
Replaces the token unconditionally (after a renewal grant).
The envelope id.
The granted token.
Its iat.
Its jti.
Sets the state of an entry.
The envelope id.
The new state.
Storage of the inbox and of the
jtistore; every write is durable when it returns. Times are Unix milliseconds.