Enum EntryEvent.Type
- java.lang.Object
-
- java.lang.Enum<EntryEvent.Type>
-
- com.tangosol.net.events.partition.cache.EntryEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<EntryEvent.Type>
- Enclosing interface:
- EntryEvent<K,V>
public static enum EntryEvent.Type extends Enum<EntryEvent.Type>
TheEntryEvent
types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSERTED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been inserted into the backing-map.INSERTING
ThisEntryEvent
is dispatched before one or moreBinaryEntry
(s) are inserted into the backing-map.REMOVED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been removed from the backing-map.REMOVING
ThisEntryEvent
is dispatched before aBinaryEntry
has been removed from backing-map.UPDATED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been updated in the backing-map.UPDATING
ThisEntryEvent
is dispatched before aBinaryEntry
is updated in backing-map.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntryEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntryEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERTING
public static final EntryEvent.Type INSERTING
ThisEntryEvent
is dispatched before one or moreBinaryEntry
(s) are inserted into the backing-map.The following holds:
- The BinaryEntry(s) provided for this event type are mutable
- A lock will be held for each entry during the processing of this event, preventing concurrent updates
- Throwing an exception from this event will prevent the operation from being committed
-
INSERTED
public static final EntryEvent.Type INSERTED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been inserted into the backing-map. This event is raised after the insert has been committed. The BinaryEntry(s) provided for this event type are immutable. For a given BinaryEntry, events will be raised in the same order as the changes occurred.
-
UPDATING
public static final EntryEvent.Type UPDATING
ThisEntryEvent
is dispatched before aBinaryEntry
is updated in backing-map.The following holds:
- The BinaryEntry provided for this event type is mutable
- A lock will be held for each Entry during the processing of this event preventing concurrent updates
- Throwing an exception from this type of event will prevent the operation from being committed
-
UPDATED
public static final EntryEvent.Type UPDATED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been updated in the backing-map. This event is raised after the update has been committed. The BinaryEntry(s) provided for this event type are immutable. For a given BinaryEntry, events will be raised in the same order as the changes occurred.
-
REMOVING
public static final EntryEvent.Type REMOVING
ThisEntryEvent
is dispatched before aBinaryEntry
has been removed from backing-map.The following holds:
- The BinaryEntry provided for this event type is mutable
- A lock will be held for each Entry during the processing of this event preventing concurrent updates
- Throwing an exception from this type of event will prevent the operation from being committed
-
REMOVED
public static final EntryEvent.Type REMOVED
ThisEntryEvent
is dispatched after one or moreBinaryEntry
(s) have been removed from the backing-map. This event is raised after the removal has been committed. The BinaryEntry(s) provided for this event type are immutable. For a given BinaryEntry, events will be raised in the same order as the changes occurred.
-
-
Method Detail
-
values
public static EntryEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EntryEvent.Type c : EntryEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntryEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-