DurableDocumentRecoveryLocator
Defined in: packages/core/src/document-recovery.ts:38
The application supplies a locator protected independently of document storage.
Methods
Section titled “Methods”compareAndSwap()
Section titled “compareAndSwap()”compareAndSwap(
logicalDocumentId,expected,next):Promise<boolean>
Defined in: packages/core/src/document-recovery.ts:41
Compare every expected field and persist the update atomically before returning true.
Parameters
Section titled “Parameters”logicalDocumentId
Section titled “logicalDocumentId”string
expected
Section titled “expected”Returns
Section titled “Returns”Promise<boolean>
load()
Section titled “load()”load(
logicalDocumentId):Promise<DocumentRecoveryLocator|undefined>
Defined in: packages/core/src/document-recovery.ts:39
Parameters
Section titled “Parameters”logicalDocumentId
Section titled “logicalDocumentId”string
Returns
Section titled “Returns”Promise<DocumentRecoveryLocator | undefined>