Package io.agroal.api
Enum AgroalDataSource.FlushMode
- All Implemented Interfaces:
Serializable,Comparable<AgroalDataSource.FlushMode>
- Enclosing interface:
AgroalDataSource
Modes supported on the flush operation.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll connections are flushed right away.Creates connections to met the minimum size of the pool.Active connections are flushed on return.Idle connections are flushed.Performs on-demand validation of idle connections.Flushes connections that have been in use for longer than the specified leak timeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgroalDataSource.FlushModeReturns the enum constant of this type with the specified name.static AgroalDataSource.FlushMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
All connections are flushed right away. -
IDLE
Idle connections are flushed. -
INVALID
Performs on-demand validation of idle connections. -
GRACEFUL
Active connections are flushed on return. Idle connections are flushed immediately. -
LEAK
Flushes connections that have been in use for longer than the specified leak timeout. -
FILL
Creates connections to met the minimum size of the pool. Used after and increase of minimum size, to make that change effective immediately.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-