create returns the winning record,
including when another process published a different candidate. A successful
return must survive process loss. Never implement this with process memory.
Retain a decision for at least as long as its host can replay the step.
Hierarchy
-
DecisionStore↳DecisionJournal
Methods
load
▸ load(key): Promise<DecisionCheckpoint | null>
Parameters
Returns
Promise<DecisionCheckpoint | null>
create
▸ create(checkpoint): Promise<DecisionCheckpoint>
Parameters
Returns
Promise<DecisionCheckpoint>