public static enum MapEvent.Type extends Enum<MapEvent.Type>
| Enum Constant and Description |
|---|
CHANGE
Occurs when a key is changed (created, updated, or deleted).
|
CREATE
Occurs when a key is created.
|
DELETE
Occurs when a key is deleted.
|
UPDATE
Occurs when a key is updated.
|
| Modifier and Type | Method and Description |
|---|---|
static MapEvent.Type |
parse(String name)
Parses a string into a cluster event type.
|
String |
toString() |
static MapEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapEvent.Type CREATE
public static final MapEvent.Type UPDATE
public static final MapEvent.Type CHANGE
public static final MapEvent.Type DELETE
public static MapEvent.Type[] values()
for (MapEvent.Type c : MapEvent.Type.values()) System.out.println(c);
public static MapEvent.Type 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<MapEvent.Type>public static MapEvent.Type parse(String name)
name - The event type name.Copyright © 2013-2014. All Rights Reserved.