Class DynamoDBUtils
java.lang.Object
net.javacrumbs.shedlock.provider.dynamodb.DynamoDBUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.amazonaws.services.dynamodbv2.document.TablecreateLockTable(com.amazonaws.services.dynamodbv2.AmazonDynamoDB dynamodb, String tableName, com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput throughput) Creates a locking table with the given name.
-
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 usedtableName- table to be usedthroughput- AWSthroughput requirementsfor 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.
-