Enum DistributedDatabaseSummary.ReplicationMethod
- java.lang.Object
-
- java.lang.Enum<DistributedDatabaseSummary.ReplicationMethod>
-
- com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary.ReplicationMethod
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<DistributedDatabaseSummary.ReplicationMethod>
- Enclosing class:
- DistributedDatabaseSummary
public static enum DistributedDatabaseSummary.ReplicationMethod extends Enum<DistributedDatabaseSummary.ReplicationMethod> implements BmcEnum
The Replication method for Globally distributed database.Use RAFT for Raft based replication. With RAFT replication, shards cannot have peers details set on them. In case shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT replication cases (with or without peers), please set replicationMethod as DG or do not set any value for replicationMethod.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DgRaftUnknownEnumValueThis value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DistributedDatabaseSummary.ReplicationMethodcreate(String key)StringgetValue()static DistributedDatabaseSummary.ReplicationMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static DistributedDatabaseSummary.ReplicationMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Raft
public static final DistributedDatabaseSummary.ReplicationMethod Raft
-
Dg
public static final DistributedDatabaseSummary.ReplicationMethod Dg
-
UnknownEnumValue
public static final DistributedDatabaseSummary.ReplicationMethod UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static DistributedDatabaseSummary.ReplicationMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DistributedDatabaseSummary.ReplicationMethod c : DistributedDatabaseSummary.ReplicationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DistributedDatabaseSummary.ReplicationMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
create
public static DistributedDatabaseSummary.ReplicationMethod create(String key)
-
-