public static enum AgroalDataSource.FlushMode extends Enum<AgroalDataSource.FlushMode>
Enum Constant and Description |
---|
ALL
All connections are flushed right away.
|
FILL
Creates connections to met the minimum size of the pool.
|
GRACEFUL
Active connections are flushed on return.
|
IDLE
Idle connections are flushed.
|
INVALID
Performs on-demand validation of idle connections.
|
LEAK
Flushes connections that have been in use for longer than the specified leak timeout.
|
Modifier and Type | Method and Description |
---|---|
static AgroalDataSource.FlushMode |
valueOf(String name)
Returns 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.
|
public static final AgroalDataSource.FlushMode ALL
public static final AgroalDataSource.FlushMode IDLE
public static final AgroalDataSource.FlushMode INVALID
public static final AgroalDataSource.FlushMode GRACEFUL
public static final AgroalDataSource.FlushMode LEAK
public static final AgroalDataSource.FlushMode FILL
public static AgroalDataSource.FlushMode[] values()
for (AgroalDataSource.FlushMode c : AgroalDataSource.FlushMode.values()) System.out.println(c);
public static AgroalDataSource.FlushMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 JBoss by Red Hat. All rights reserved.