DynamoDbAtomicCounter (AWS SDK for Java

DynamoDbAtomicCounter (AWS SDK for Java - 2.25.21)

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 Elements

    long

    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 delta

      The value to increment (positive) or decrement (negative) the counter with for each update.

      Default:
      1L
    • startValue

      long startValue

      The starting value of the counter.

      Default:
      0L

You Might Also Like