Class ClusterEvent

java.lang.Object
com.kingsrook.qqq.backend.core.cluster.ClusterEvent
All Implemented Interfaces:
Serializable

public class ClusterEvent extends Object implements 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 Details

    • TYPE_SESSION_ENDED

      public static final String TYPE_SESSION_ENDED
      a user's session ended (key: the session UUID): drop its cached tokens and sessions
      See Also:
    • TYPE_METADATA_OVERLAY_CHANGED

      public static final String TYPE_METADATA_OVERLAY_CHANGED
      the runtime meta data overlay changed: reload it
      See Also:
    • TYPE_SETTING_CHANGED

      public static final String TYPE_SETTING_CHANGED
      a setting changed (name: the setting key)
      See Also:
    • TYPE_MEMO_INVALIDATE

      public static final String 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

      public ClusterEvent(String type, String name, String key)
      Constructor.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
      Getter for id
    • setId

      public void setId(String id)
      Setter for id
    • getType

      public String getType()
      Getter for type
    • setType

      public void setType(String type)
      Setter for type
    • getName

      public String getName()
      Getter for name
    • setName

      public void setName(String name)
      Setter for name
    • getKey

      public String getKey()
      Getter for key
    • setKey

      public void setKey(String key)
      Setter for key
    • getOriginNodeId

      public String getOriginNodeId()
      Getter for originNodeId
    • setOriginNodeId

      public void setOriginNodeId(String originNodeId)
      Setter for originNodeId