public enum TargetRole extends java.lang.Enum<TargetRole>
RoutingSignal resolves for a given JDBC call in the unified
read/write splitting plugin.
WRITER — the call should run on the writer connection.READER — the call should run on a reader connection.KEEP — pin to the current connection (explicit /*@keep* / hint).NO_DECISION — this method is not a routing trigger for this signal; the signal
abstains and no switch is attempted (distinct from KEEP, which actively pins).| Enum Constant and Description |
|---|
KEEP |
NO_DECISION |
READER |
WRITER |
| Modifier and Type | Method and Description |
|---|---|
static TargetRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TargetRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetRole WRITER
public static final TargetRole READER
public static final TargetRole KEEP
public static final TargetRole NO_DECISION
public static TargetRole[] values()
for (TargetRole c : TargetRole.values()) System.out.println(c);
public static TargetRole 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