java.io.Serializable
, java.lang.Comparable<ConnectionAffinityCallback.AffinityPolicy>
public static enum ConnectionAffinityCallback.AffinityPolicy extends java.lang.Enum<ConnectionAffinityCallback.AffinityPolicy>
Enum Constant | Description |
---|---|
DATA_BASED_AFFINITY |
|
TRANSACTION_BASED_AFFINITY |
|
WEBSESSION_BASED_AFFINITY |
Modifier and Type | Method | Description |
---|---|---|
static ConnectionAffinityCallback.AffinityPolicy |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ConnectionAffinityCallback.AffinityPolicy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionAffinityCallback.AffinityPolicy WEBSESSION_BASED_AFFINITY
public static final ConnectionAffinityCallback.AffinityPolicy TRANSACTION_BASED_AFFINITY
public static final ConnectionAffinityCallback.AffinityPolicy DATA_BASED_AFFINITY
public static ConnectionAffinityCallback.AffinityPolicy[] values()
for (ConnectionAffinityCallback.AffinityPolicy c : ConnectionAffinityCallback.AffinityPolicy.values()) System.out.println(c);
public static ConnectionAffinityCallback.AffinityPolicy 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