Class BatchWriteBuilder<T>

java.lang.Object
dev.hogwai.dynamodb.simplified.builder.base.AbstractBatchWriteBuilder<T, BatchWriteBuilder<T>>
dev.hogwai.dynamodb.simplified.builder.BatchWriteBuilder<T>
Type Parameters:
T - the item type

public class BatchWriteBuilder<T> extends AbstractBatchWriteBuilder<T, BatchWriteBuilder<T>>
Builds a batch write operation to put and delete multiple items in a single table.

Obtain via Table.batchWrite().

A single batch write can contain up to 25 put and delete operations combined. Unprocessed items are automatically retried with exponential backoff (up to 3 attempts).

  • Constructor Details

    • BatchWriteBuilder

      public BatchWriteBuilder(@NonNull software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable<T> table, @NonNull software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient)
      Creates a new BatchWriteBuilder with the given table and low-level client.
      Parameters:
      table - the DynamoDB table
      dynamoDbClient - the low-level DynamoDB client
  • Method Details