Class DefaultDynamoDBStorageConfigurationProvider

java.lang.Object
io.micronaut.microstream.dynamodb.DefaultDynamoDBStorageConfigurationProvider
All Implemented Interfaces:
io.micronaut.core.naming.Named, RootClassConfigurationProvider, DynamoDbStorageConfigurationProvider

@EachProperty("microstream.dynamodb.storage") public class DefaultDynamoDBStorageConfigurationProvider extends Object implements DynamoDbStorageConfigurationProvider
EachProperty implementation of DynamoDbStorageConfigurationProvider.
Since:
2.0.0
Author:
Sergio del Amo
  • Constructor Details

    • DefaultDynamoDBStorageConfigurationProvider

      public DefaultDynamoDBStorageConfigurationProvider(@Parameter String name)
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • getRootClass

      @NonNull public @NonNull Class<?> getRootClass()
      Description copied from interface: RootClassConfigurationProvider
      Returns the class of the Root Instance. Root Instances
      Specified by:
      getRootClass in interface RootClassConfigurationProvider
      Returns:
      Class for the Root Instance.
    • setRootClass

      public void setRootClass(@NonNull @NonNull Class<?> rootClass)
      Class of the Root Instance. Root Instances
      Parameters:
      rootClass - Class for the Root Instance.
    • getDynamoDbClientName

      @NonNull public @NonNull Optional<String> getDynamoDbClientName()
      Description copied from interface: DynamoDbStorageConfigurationProvider
      The name qualifier of the defined DynamoDBClient to use. If unset, a client with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default client will be used.
      Specified by:
      getDynamoDbClientName in interface DynamoDbStorageConfigurationProvider
      Returns:
      Returns the name qualifier of the S3Client to use.
    • setDynamoDbClientName

      public void setDynamoDbClientName(@Nullable @Nullable String dynamoDbClientName)
      The name qualifier of the defined DynamoDB Client to use. If unset, a client with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default client will be used.
      Parameters:
      dynamoDbClientName - the name qualifier of the S3Client to use
    • getTableName

      @NonNull public @NonNull String getTableName()
      Specified by:
      getTableName in interface DynamoDbStorageConfigurationProvider
      Returns:
      Returns the name of the DynamoDB table to use.
    • setTableName

      public void setTableName(@NonNull @NonNull String tableName)
      Parameters:
      tableName - Name of the DynamoDB table to use.