public enum MetadataPolicy extends Enum<MetadataPolicy>
Enum Constant and Description |
---|
CREATE_ON_UPDATE
Hazelcast processes supported objects at the time of creation
and updates.
|
OFF
Turns off metadata creation.
|
Modifier and Type | Method and Description |
---|---|
static MetadataPolicy |
getById(int id)
Returns the MetadataPolicy for the given ID.
|
int |
getId()
Returns enumeration id of this policy.
|
static MetadataPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataPolicy CREATE_ON_UPDATE
public static final MetadataPolicy OFF
public static MetadataPolicy[] values()
for (MetadataPolicy c : MetadataPolicy.values()) System.out.println(c);
public static MetadataPolicy 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 getId()
Enum.ordinal()
because this value is used in client protocol.
The ids for the known policies must not be changed.public static MetadataPolicy getById(int id)
Copyright © 2024 Hazelcast, Inc.. All rights reserved.