Package com.illumon.iris.controller
Class ControllerHashtableEvent
java.lang.Object
com.illumon.iris.controller.ControllerHashtableEvent
public final class ControllerHashtableEvent extends Object
Description of a Controller Hashtable event.
-
Field Summary
Fields Modifier and Type Field Description static int
EVENT_PUT
An addition or modification to the controller hash table.static int
EVENT_PUTALL
Bulk addition, modification, or removals from the controller hash table.static int
EVENT_REMOVE
A removal from the controller hash table. -
Method Summary
Modifier and Type Method Description Map<Long,PersistentQueryInfo>
getAll()
Returns the added or modified PersistentQueryInfos forEVENT_PUTALL
int
getEventType()
Returns the event type.long
getKey()
Returns the serial forEVENT_PUT
orEVENT_REMOVE
PersistentQueryInfo
getOldValue()
Returns the old value forEVENT_PUT
orEVENT_REMOVE
Map<Long,PersistentQueryInfo>
getRemoved()
Returns the removed PersistentQueryInfos forEVENT_PUTALL
PersistentQueryInfo
getValue()
Returns the new value forEVENT_PUT
-
Field Details
-
EVENT_PUT
public static final int EVENT_PUTAn addition or modification to the controller hash table.- See Also:
- Constant Field Values
-
EVENT_REMOVE
public static final int EVENT_REMOVEA removal from the controller hash table.- See Also:
- Constant Field Values
-
EVENT_PUTALL
public static final int EVENT_PUTALLBulk addition, modification, or removals from the controller hash table.- See Also:
- Constant Field Values
-
-
Method Details
-
getEventType
public int getEventType()Returns the event type.- Returns:
- one of
EVENT_PUT
,EVENT_PUTALL
, orEVENT_REMOVE
-
getKey
public long getKey()Returns the serial forEVENT_PUT
orEVENT_REMOVE
- Returns:
- the serial for the added, modified, or removed PersistentQueryInfo
-
getValue
Returns the new value forEVENT_PUT
- Returns:
- the modified PersistentQueryInfo
-
getOldValue
Returns the old value forEVENT_PUT
orEVENT_REMOVE
- Returns:
- the previous PersistentQueryInfo
-
getAll
Returns the added or modified PersistentQueryInfos forEVENT_PUTALL
- Returns:
- the added or modified queries
-
getRemoved
Returns the removed PersistentQueryInfos forEVENT_PUTALL
- Returns:
- the removed configurations
-