Package su.onno.process
Record Class ProcessTasksChangedEvent
java.lang.Object
java.lang.Record
su.onno.process.ProcessTasksChangedEvent
public record ProcessTasksChangedEvent(UUID instanceId, Set<String> audienceUsers, Set<String> audienceRoles)
extends Record
Post-commit invalidation for the process-task inboxes whose visible work may have changed.
The audience is deliberately server-side metadata: UI transports use it to route a payload-free refresh signal, never to expose candidate assignments to browsers.
-
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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessTasksChangedEvent
public ProcessTasksChangedEvent(UUID instanceId, Set<String> audienceUsers, Set<String> audienceRoles) Creates an instance of aProcessTasksChangedEventrecord class.- Parameters:
instanceId- the value for theinstanceIdrecord componentaudienceUsers- the value for theaudienceUsersrecord componentaudienceRoles- the value for theaudienceRolesrecord component
-
-
Method Details
-
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). -
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
-