Package com.illumon.iris.controller
Class ControllerHashtableEvent
java.lang.Object
com.illumon.iris.controller.ControllerHashtableEvent
Description of a Controller Hashtable event.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn addition or modification to the controller hash table.static final intBulk addition, modification, or removals from the controller hash table.static final intA removal from the controller hash table. -
Constructor Summary
ConstructorsConstructorDescriptionControllerHashtableEvent(int eventType, Long key, PersistentQueryInfo value, PersistentQueryInfo oldValue) ControllerHashtableEvent(Map<Long, PersistentQueryInfo> all, Map<Long, PersistentQueryInfo> removed) -
Method Summary
Modifier and TypeMethodDescriptiongetAll()Returns the added or modified PersistentQueryInfos forEVENT_PUTALLintReturns the event type.longgetKey()Returns the serial forEVENT_PUTorEVENT_REMOVEReturns the old value forEVENT_PUTorEVENT_REMOVEReturns the removed PersistentQueryInfos forEVENT_PUTALLgetValue()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:
-
EVENT_REMOVE
public static final int EVENT_REMOVEA removal from the controller hash table.- See Also:
-
EVENT_PUTALL
public static final int EVENT_PUTALLBulk addition, modification, or removals from the controller hash table.- See Also:
-
-
Constructor Details
-
ControllerHashtableEvent
public ControllerHashtableEvent(@NotNull Map<Long, PersistentQueryInfo> all, @NotNull Map<Long, PersistentQueryInfo> removed) -
ControllerHashtableEvent
public ControllerHashtableEvent(int eventType, @NotNull Long key, @Nullable PersistentQueryInfo value, @Nullable PersistentQueryInfo oldValue)
-
-
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_PUTorEVENT_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_PUTorEVENT_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
-