Class AmazonDynamoDBLockClientOptions


  • public class AmazonDynamoDBLockClientOptions
    extends Object
    An options class for setting up a lock client with various overrides to the defaults. In order to use this, it must be constructed using the builder.
    Author:
    Sasha Slutsker
    • Field Detail

      • DEFAULT_LEASE_DURATION

        protected static final Long DEFAULT_LEASE_DURATION
      • DEFAULT_HEARTBEAT_PERIOD

        protected static final Long DEFAULT_HEARTBEAT_PERIOD
      • DEFAULT_TIME_UNIT

        protected static final TimeUnit DEFAULT_TIME_UNIT
      • DEFAULT_CREATE_HEARTBEAT_BACKGROUND_THREAD

        protected static final Boolean DEFAULT_CREATE_HEARTBEAT_BACKGROUND_THREAD
      • DEFAULT_HOLD_LOCK_ON_SERVICE_UNAVAILABLE

        protected static final Boolean DEFAULT_HOLD_LOCK_ON_SERVICE_UNAVAILABLE
      • DEFAULT_MAX_LOCK_OBSERVATION_CACHE_SIZE

        protected static final Integer DEFAULT_MAX_LOCK_OBSERVATION_CACHE_SIZE
    • Method Detail

      • builder

        public static AmazonDynamoDBLockClientOptions.AmazonDynamoDBLockClientOptionsBuilder builder​(software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDBClient,
                                                                                                     String tableName)
        Creates an AmazonDynamoDBLockClientOptions builder object, which can be used to create an AmazonDynamoDBLockClient. The only required parameters are the client and the table name.
        Parameters:
        dynamoDBClient - The client for talking to DynamoDB.
        tableName - The table containing the lock client.
        Returns:
        A builder which can be used for creating a lock client.