مشاركة عبر


ReplicaType Class

public final class ReplicaType
extends ExpandableStringEnum<ReplicaType>

Defines values for ReplicaType.

Field Summary

Modifier and Type Field and Description
static final ReplicaType PRIMARY

Static value Primary for ReplicaType.

static final ReplicaType READABLE_SECONDARY

Static value ReadableSecondary for ReplicaType.

Constructor Summary

Constructor Description
ReplicaType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicaType value.

Method Summary

Modifier and Type Method and Description
static ReplicaType fromString(String name)

Creates or finds a ReplicaType from its string representation.

static Collection<ReplicaType> values()

Gets known ReplicaType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PRIMARY

public static final ReplicaType PRIMARY

Static value Primary for ReplicaType.

READABLE_SECONDARY

public static final ReplicaType READABLE_SECONDARY

Static value ReadableSecondary for ReplicaType.

Constructor Details

ReplicaType

@Deprecated
public ReplicaType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicaType value.

Method Details

fromString

public static ReplicaType fromString(String name)

Creates or finds a ReplicaType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ReplicaType.

values

public static Collection<ReplicaType> values()

Gets known ReplicaType values.

Returns:

known ReplicaType values.

Applies to