Class DynamoDBUtils


  • public class DynamoDBUtils
    extends Object
    • Constructor Detail

      • DynamoDBUtils

        public DynamoDBUtils()
    • Method Detail

      • createLockTable

        public static com.amazonaws.services.dynamodbv2.document.Table createLockTable​(com.amazonaws.services.dynamodbv2.AmazonDynamoDB dynamodb,
                                                                                       String tableName,
                                                                                       com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput throughput)
        Creates a locking table with the given name.

        This method does not check if a table with the given name exists already.

        Parameters:
        dynamodb - DynamoDB to be used
        tableName - table to be used
        throughput - AWS throughput requirements for the given lock setup
        Returns:
        a reference to the newly created table
        Throws:
        com.amazonaws.services.dynamodbv2.model.ResourceInUseException - The operation conflicts with the resource's availability. You attempted to recreate an existing table.