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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name qualifier of the defined DynamoDBClient to use.@NonNull String
getName()
@NonNull Class<?>
Returns the class of the Root Instance.@NonNull String
void
setDynamoDbClientName
(@Nullable String dynamoDbClientName) The name qualifier of the defined DynamoDB Client to use.void
setRootClass
(@NonNull Class<?> rootClass) Class of the Root Instance.void
setTableName
(@NonNull String tableName)
-
Constructor Details
-
DefaultDynamoDBStorageConfigurationProvider
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
getRootClass
Description copied from interface:RootClassConfigurationProvider
Returns the class of the Root Instance. Root Instances- Specified by:
getRootClass
in interfaceRootClassConfigurationProvider
- Returns:
- Class for the Root Instance.
-
setRootClass
Class of the Root Instance. Root Instances- Parameters:
rootClass
- Class for the Root Instance.
-
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 interfaceDynamoDbStorageConfigurationProvider
- Returns:
- Returns the name qualifier of the S3Client to use.
-
setDynamoDbClientName
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
- Specified by:
getTableName
in interfaceDynamoDbStorageConfigurationProvider
- Returns:
- Returns the name of the DynamoDB table to use.
-
setTableName
- Parameters:
tableName
- Name of the DynamoDB table to use.
-