public static enum ClusteringServiceConfiguration.ClientMode extends java.lang.Enum<ClusteringServiceConfiguration.ClientMode>
Enum Constant and Description |
---|
AUTO_CREATE
Connect to the cluster and create or validate the cluster state is compatible with
ClusteringServiceConfiguration.getServerConfiguration() . |
AUTO_CREATE_ON_RECONNECT
Auto creates the necessary state on reconnecting to a cluster as well as on initial connection like
AUTO_CREATE . |
CONNECT
Connect to the cluster with no expectations regarding the cluster state.
|
EXPECTING
Connect to the cluster and validate the cluster state is compatible with
ClusteringServiceConfiguration.getServerConfiguration() . |
Modifier and Type | Method and Description |
---|---|
static ClusteringServiceConfiguration.ClientMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClusteringServiceConfiguration.ClientMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusteringServiceConfiguration.ClientMode CONNECT
public static final ClusteringServiceConfiguration.ClientMode EXPECTING
ClusteringServiceConfiguration.getServerConfiguration()
.public static final ClusteringServiceConfiguration.ClientMode AUTO_CREATE
ClusteringServiceConfiguration.getServerConfiguration()
.public static final ClusteringServiceConfiguration.ClientMode AUTO_CREATE_ON_RECONNECT
AUTO_CREATE
.public static ClusteringServiceConfiguration.ClientMode[] values()
for (ClusteringServiceConfiguration.ClientMode c : ClusteringServiceConfiguration.ClientMode.values()) System.out.println(c);
public static ClusteringServiceConfiguration.ClientMode 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