Class DynamoDBUtils

java.lang.Object
net.javacrumbs.shedlock.provider.dynamodb.DynamoDBUtils

public class DynamoDBUtils
extends Object
  • Constructor Summary

    Constructors
    Constructor Description
    DynamoDBUtils()  
  • Method Summary

    Modifier and Type Method Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DynamoDBUtils

      public DynamoDBUtils()
  • Method Details

    • 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.