Class ClusterEvent
java.lang.Object
com.kingsrook.qqq.backend.core.cluster.ClusterEvent
- All Implemented Interfaces:
Serializable
A control event sent to every node of a cluster (ClusterBus): something a
node changed that the other nodes hold in memory. Plain string fields, so a
transport can send it as JSON.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringa named cache is stale (name: the cache; key: one entry, or null for all)static final Stringthe runtime meta data overlay changed: reload itstatic final Stringa user's session ended (key: the session UUID): drop its cached tokens and sessionsstatic final Stringa setting changed (name: the setting key) -
Constructor Summary
ConstructorsConstructorDescriptionConstructor (for deserialization).ClusterEvent(String type, String name, String key) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Getter for idgetKey()Getter for keygetName()Getter for nameGetter for originNodeIdgetType()Getter for typevoidSetter for idvoidSetter for keyvoidSetter for namevoidsetOriginNodeId(String originNodeId) Setter for originNodeIdvoidSetter for typetoString()
-
Field Details
-
TYPE_SESSION_ENDED
a user's session ended (key: the session UUID): drop its cached tokens and sessions- See Also:
-
TYPE_METADATA_OVERLAY_CHANGED
the runtime meta data overlay changed: reload it- See Also:
-
TYPE_SETTING_CHANGED
-
TYPE_MEMO_INVALIDATE
a named cache is stale (name: the cache; key: one entry, or null for all)- See Also:
-
-
Constructor Details
-
ClusterEvent
public ClusterEvent()Constructor (for deserialization). -
ClusterEvent
-
-
Method Details
-
toString
-
getId
Getter for id -
setId
Setter for id -
getType
Getter for type -
setType
Setter for type -
getName
Getter for name -
setName
Setter for name -
getKey
Getter for key -
setKey
Setter for key -
getOriginNodeId
Getter for originNodeId -
setOriginNodeId
Setter for originNodeId
-