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 Details

    • DefaultPostgresStorageConfigurationProvider

      public DefaultPostgresStorageConfigurationProvider(@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.
    • getDatasourceName

      @Nullable public @Nullable Optional<String> getDatasourceName()
      Description copied from interface: PostgresStorageConfigurationProvider
      The 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:
      getDatasourceName in interface PostgresStorageConfigurationProvider
      Returns:
      Returns the name qualifier of the datasource to use.
    • setDatasourceName

      public void setDatasourceName(@Nullable @Nullable String datasourceName)
      The 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

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

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