Class DefaultPostgresStorageConfigurationProvider
java.lang.Object
io.micronaut.microstream.postgres.DefaultPostgresStorageConfigurationProvider
- All Implemented Interfaces:
- io.micronaut.core.naming.Named,- RootClassConfigurationProvider,- PostgresStorageConfigurationProvider
@EachProperty("microstream.postgres.storage")
public class DefaultPostgresStorageConfigurationProvider
extends Object
implements PostgresStorageConfigurationProvider
- Since:
- 2.0.0
- Author:
- Tim Yates
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe name qualifier of the defined postgres DataSource to use.@NonNull StringgetName()@NonNull Class<?>Returns the class of the Root Instance.@NonNull StringvoidsetDatasourceName(@Nullable String datasourceName) The name qualifier of the defined postgres DataSource to use.voidsetRootClass(@NonNull Class<?> rootClass) Class of the Root Instance.voidsetTableName(@NonNull String tableName) 
- 
Constructor Details- 
DefaultPostgresStorageConfigurationProvider
 
- 
- 
Method Details- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
getRootClassDescription copied from interface:RootClassConfigurationProviderReturns the class of the Root Instance. Root Instances- Specified by:
- getRootClassin interface- RootClassConfigurationProvider
- Returns:
- Class for the Root Instance.
 
- 
setRootClassClass of the Root Instance. Root Instances- Parameters:
- rootClass- Class for the Root Instance.
 
- 
getDatasourceNameDescription copied from interface:PostgresStorageConfigurationProviderThe name qualifier of the defined postgres DataSource to use. If unset, a datasource 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 datasource will be used.- Specified by:
- getDatasourceNamein interface- PostgresStorageConfigurationProvider
- Returns:
- Returns the name qualifier of the datasource to use.
 
- 
setDatasourceNameThe name qualifier of the defined postgres DataSource to use. If unset, a datasource 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 datasource will be used.- Parameters:
- datasourceName-
 
- 
getTableName- Specified by:
- getTableNamein interface- PostgresStorageConfigurationProvider
- Returns:
- Returns the name of the table to use.
 
- 
setTableName- Parameters:
- tableName- Name of the table to use.
 
 
-