public enum ClusterBlockLevel extends Enum<ClusterBlockLevel>
Enum Constant and Description |
---|
METADATA
Deprecated.
Use METADATA_READ or METADATA_WRITE instead.
|
METADATA_READ |
METADATA_WRITE |
READ |
WRITE |
Modifier and Type | Field and Description |
---|---|
static EnumSet<ClusterBlockLevel> |
ALL |
static EnumSet<ClusterBlockLevel> |
READ_WRITE |
Modifier and Type | Method and Description |
---|---|
int |
id() |
int |
toId(Version version)
Returns the ClusterBlockLevel's id according to a given version, this to ensure backward compatibility.
|
static ClusterBlockLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterBlockLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterBlockLevel READ
public static final ClusterBlockLevel WRITE
@Deprecated public static final ClusterBlockLevel METADATA
public static final ClusterBlockLevel METADATA_READ
public static final ClusterBlockLevel METADATA_WRITE
public static final EnumSet<ClusterBlockLevel> ALL
public static final EnumSet<ClusterBlockLevel> READ_WRITE
public static ClusterBlockLevel[] values()
for (ClusterBlockLevel c : ClusterBlockLevel.values()) System.out.println(c);
public static ClusterBlockLevel 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 int id()
public int toId(Version version)
version
- the versionCopyright © 2009–2016. All rights reserved.