Annotation Type DynamoDbAtomicCounter
Used to explicitly designate an attribute to be an auto-generated counter updated unconditionally in DynamoDB.
By default, the counter will start on 0 and increment with 1 for each subsequent calls to updateItem.
By supplying a negative integer delta value, the attribute works as a decreasing counter.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlong
The value to increment (positive) or decrement (negative) the counter with for each update.long
The starting value of the counter.
-
Element Details
-
delta
long deltaThe value to increment (positive) or decrement (negative) the counter with for each update.- Default:
1L
-
startValue
long startValueThe starting value of the counter.- Default:
0L
-