Record Class ClusterEvent.ProcessTasksChanged

java.lang.Object
java.lang.Record
su.onno.cluster.ClusterEvent.ProcessTasksChanged
All Implemented Interfaces:
ClusterEvent
Enclosing interface:
ClusterEvent

public static record ClusterEvent.ProcessTasksChanged(String originNodeId, String instanceId, Set<String> audienceUsers, Set<String> audienceRoles) extends Record implements ClusterEvent
A process mutation changed which task rows are visible to one or more users or roles. Candidate data remains in this server-to-server envelope; the browser receives only a tasks-changed invalidation and refetches its authorized inbox.
  • Constructor Details

    • ProcessTasksChanged

      public ProcessTasksChanged(String originNodeId, String instanceId, Set<String> audienceUsers, Set<String> audienceRoles)
      Creates an instance of a ProcessTasksChanged record class.
      Parameters:
      originNodeId - the value for the originNodeId record component
      instanceId - the value for the instanceId record component
      audienceUsers - the value for the audienceUsers record component
      audienceRoles - the value for the audienceRoles record component
  • Method Details

    • kind

      public String kind()
      Description copied from interface: ClusterEvent
      The payload-shape tag identifying which permitted variant this event is.
      Specified by:
      kind in interface ClusterEvent
    • withOrigin

      public ClusterEvent.ProcessTasksChanged withOrigin(String originNodeId)
      Description copied from interface: ClusterEvent
      A copy of this event with ClusterEvent.originNodeId() set — used by a bus to stamp its identity on send.
      Specified by:
      withOrigin in interface ClusterEvent
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • originNodeId

      public String originNodeId()
      Returns the value of the originNodeId record component.
      Specified by:
      originNodeId in interface ClusterEvent
      Returns:
      the value of the originNodeId record component
    • instanceId

      public String instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • audienceUsers

      public Set<String> audienceUsers()
      Returns the value of the audienceUsers record component.
      Returns:
      the value of the audienceUsers record component
    • audienceRoles

      public Set<String> audienceRoles()
      Returns the value of the audienceRoles record component.
      Returns:
      the value of the audienceRoles record component