public enum DatasourceFailoverMode extends java.lang.Enum<DatasourceFailoverMode>
| Enum Constant and Description |
|---|
STANDARD
Standard failover mode means that this datasource will fail over when a connection cannot be retrieved, but when
connectivity is restored, connections will again come from this datasource
|
STICKY
Sticky failover mode means that once this datasource fails over, connections will continue coming from the
failover datasource until the failover datasource itself fails.
|
| Modifier and Type | Method and Description |
|---|---|
static DatasourceFailoverMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatasourceFailoverMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatasourceFailoverMode STANDARD
public static final DatasourceFailoverMode STICKY
public static DatasourceFailoverMode[] values()
for (DatasourceFailoverMode c : DatasourceFailoverMode.values()) System.out.println(c);
public static DatasourceFailoverMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null