Package su.onno.cluster
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface su.onno.cluster.ClusterEvent
ClusterEvent.EntityChanged, ClusterEvent.Notification, ClusterEvent.Presence, ClusterEvent.ProcessTasksChanged -
Field Summary
Fields inherited from interface su.onno.cluster.ClusterEvent
KIND_ENTITY_CHANGED, KIND_NOTIFICATION, KIND_PRESENCE, KIND_PROCESS_TASKS_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaudienceRolesrecord component.Returns the value of theaudienceUsersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.kind()The payload-shape tag identifying which permitted variant this event is.Returns the value of theoriginNodeIdrecord component.final StringtoString()Returns a string representation of this record class.withOrigin(String originNodeId) A copy of this event withClusterEvent.originNodeId()set — used by a bus to stamp its identity on send.
-
Constructor Details
-
ProcessTasksChanged
public ProcessTasksChanged(String originNodeId, String instanceId, Set<String> audienceUsers, Set<String> audienceRoles) Creates an instance of aProcessTasksChangedrecord class.- Parameters:
originNodeId- the value for theoriginNodeIdrecord componentinstanceId- the value for theinstanceIdrecord componentaudienceUsers- the value for theaudienceUsersrecord componentaudienceRoles- the value for theaudienceRolesrecord component
-
-
Method Details
-
kind
Description copied from interface:ClusterEventThe payload-shape tag identifying which permitted variant this event is.- Specified by:
kindin interfaceClusterEvent
-
withOrigin
Description copied from interface:ClusterEventA copy of this event withClusterEvent.originNodeId()set — used by a bus to stamp its identity on send.- Specified by:
withOriginin interfaceClusterEvent
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
originNodeId
Returns the value of theoriginNodeIdrecord component.- Specified by:
originNodeIdin interfaceClusterEvent- Returns:
- the value of the
originNodeIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
audienceUsers
Returns the value of theaudienceUsersrecord component.- Returns:
- the value of the
audienceUsersrecord component
-
audienceRoles
Returns the value of theaudienceRolesrecord component.- Returns:
- the value of the
audienceRolesrecord component
-