public class DynamoDBPersistenceStore extends BasePersistenceStore implements PersistenceStore
PersistenceStore. Will store idempotency data in DynamoDB.DynamoDBPersistenceStore.Builder to create a new instance.| Modifier and Type | Class and Description |
|---|---|
static class |
DynamoDBPersistenceStore.Builder
Use this builder to get an instance of
DynamoDBPersistenceStore.With this builder you can configure the characteristics of the DynamoDB Table (name, key, sort key, and other field names). You can also set a custom DynamoDbClient for further tuning. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDEMPOTENCY |
payloadValidationEnabled| Modifier and Type | Method and Description |
|---|---|
static DynamoDBPersistenceStore.Builder |
builder() |
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)
Store's the given idempotency record in the DDB store.
|
void |
updateRecord(DataRecord record)
Update item in persistence store
|
configure, deleteRecord, getRecord, saveInProgress, saveSuccesspublic static final java.lang.String IDEMPOTENCY
public static DynamoDBPersistenceStore.Builder builder()
public DataRecord getRecord(java.lang.String idempotencyKey) throws IdempotencyItemNotFoundException
PersistenceStoregetRecord in interface PersistenceStoreidempotencyKey - the key of the recordIdempotencyItemNotFoundException - Exception thrown if no record exists in persistence store with the idempotency keypublic void putRecord(DataRecord record, java.time.Instant now) throws IdempotencyItemAlreadyExistsException
putRecord in interface PersistenceStorerecord - DataRecord instance to storenow - IdempotencyItemAlreadyExistsExceptionpublic void updateRecord(DataRecord record)
PersistenceStoreupdateRecord in interface PersistenceStorerecord - DataRecord instancepublic void deleteRecord(java.lang.String idempotencyKey)
PersistenceStoredeleteRecord in interface PersistenceStoreidempotencyKey - the key of the recordCopyright © 2023. All rights reserved.