Enum CrossClusterReplicationConfig.ClusterRole (0.30.0)

public enum CrossClusterReplicationConfig.ClusterRole extends Enum<CrossClusterReplicationConfig.ClusterRole> implements ProtocolMessageEnum

The role of the cluster in cross cluster replication.

Protobuf enum google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole

Implements

ProtocolMessageEnum

Static Fields

Name Description
CLUSTER_ROLE_UNSPECIFIED

Cluster role is not set. The behavior is equivalent to NONE.

CLUSTER_ROLE_UNSPECIFIED = 0;

CLUSTER_ROLE_UNSPECIFIED_VALUE

Cluster role is not set. The behavior is equivalent to NONE.

CLUSTER_ROLE_UNSPECIFIED = 0;

NONE

This cluster does not participate in cross cluster replication. It is an independent cluster and does not replicate to or from any other clusters.

NONE = 1;

NONE_VALUE

This cluster does not participate in cross cluster replication. It is an independent cluster and does not replicate to or from any other clusters.

NONE = 1;

PRIMARY

A cluster that allows both reads and writes. Any data written to this cluster is also replicated to the attached secondary clusters.

PRIMARY = 2;

PRIMARY_VALUE

A cluster that allows both reads and writes. Any data written to this cluster is also replicated to the attached secondary clusters.

PRIMARY = 2;

SECONDARY

A cluster that allows only reads and replicates data from a primary cluster.

SECONDARY = 3;

SECONDARY_VALUE

A cluster that allows only reads and replicates data from a primary cluster.

SECONDARY = 3;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()