Package io.agroal.api.configuration
Enum AgroalDataSourceConfiguration.DataSourceImplementation
- java.lang.Object
-
- java.lang.Enum<AgroalDataSourceConfiguration.DataSourceImplementation>
-
- io.agroal.api.configuration.AgroalDataSourceConfiguration.DataSourceImplementation
-
- All Implemented Interfaces:
Serializable
,Comparable<AgroalDataSourceConfiguration.DataSourceImplementation>
- Enclosing interface:
- AgroalDataSourceConfiguration
public static enum AgroalDataSourceConfiguration.DataSourceImplementation extends Enum<AgroalDataSourceConfiguration.DataSourceImplementation>
Available implementations of AgroalDataSource.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGROAL
Agroal - the natural database connection pool!AGROAL_POOLLESS
Specialization of the Agroal pool for the flush-on-close use case.HIKARI
The popular Hikari connection pool.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
className()
static AgroalDataSourceConfiguration.DataSourceImplementation
valueOf(String name)
Returns the enum constant of this type with the specified name.static AgroalDataSourceConfiguration.DataSourceImplementation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGROAL
public static final AgroalDataSourceConfiguration.DataSourceImplementation AGROAL
Agroal - the natural database connection pool!
-
AGROAL_POOLLESS
public static final AgroalDataSourceConfiguration.DataSourceImplementation AGROAL_POOLLESS
Specialization of the Agroal pool for the flush-on-close use case.
-
HIKARI
public static final AgroalDataSourceConfiguration.DataSourceImplementation HIKARI
The popular Hikari connection pool. Mainly for testing purposes as the Agroal API is not fully supported.
-
-
Method Detail
-
values
public static AgroalDataSourceConfiguration.DataSourceImplementation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgroalDataSourceConfiguration.DataSourceImplementation c : AgroalDataSourceConfiguration.DataSourceImplementation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgroalDataSourceConfiguration.DataSourceImplementation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
className
public String className()
-
-