public interface PersistenceStore
BasePersistenceStore.| Modifier and Type | Method and Description |
|---|---|
void |
deleteRecord(java.lang.String idempotencyKey)
Remove item from persistence store
|
DataRecord |
getRecord(java.lang.String idempotencyKey)
Retrieve item from persistence store using idempotency key and return it as a DataRecord instance.
|
void |
putRecord(DataRecord record,
java.time.Instant now)
Add a DataRecord to persistence store if it does not already exist with that key
|
void |
updateRecord(DataRecord record)
Update item in persistence store
|
DataRecord getRecord(java.lang.String idempotencyKey) throws IdempotencyItemNotFoundException
idempotencyKey - the key of the recordIdempotencyItemNotFoundException - Exception thrown if no record exists in persistence store with the idempotency keyvoid putRecord(DataRecord record, java.time.Instant now) throws IdempotencyItemAlreadyExistsException
record - DataRecord instancenow - IdempotencyItemAlreadyExistsException - if a non-expired entry already exists.void updateRecord(DataRecord record)
record - DataRecord instancevoid deleteRecord(java.lang.String idempotencyKey)
idempotencyKey - the key of the recordCopyright © 2023. All rights reserved.