public enum ClusterFailureDetectorType extends Enum<ClusterFailureDetectorType>
Enum Constant and Description |
---|
DEADLINE |
PHI_ACCRUAL |
Modifier and Type | Method and Description |
---|---|
static ClusterFailureDetectorType |
of(String name)
Returns the
ClusterFailureDetectorType identified by the given name or throws an
IllegalArgumentException if none can be identified. |
String |
toString() |
static ClusterFailureDetectorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterFailureDetectorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterFailureDetectorType DEADLINE
public static final ClusterFailureDetectorType PHI_ACCRUAL
public static ClusterFailureDetectorType[] values()
for (ClusterFailureDetectorType c : ClusterFailureDetectorType.values()) System.out.println(c);
public static ClusterFailureDetectorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ClusterFailureDetectorType>
public static ClusterFailureDetectorType of(String name)
ClusterFailureDetectorType
identified by the given name
or throws an
IllegalArgumentException
if none can be identified. In contrast to valueOf(String)
, this method
does not match on the identifier name ("DEADLINE", "PHI_ACCRUAL"), but rather on the explicitly specified
name
field's value.name
- name of the requested ClusterFailureDetectorType
ClusterFailureDetectorType
identified by the given name.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.