Record Class ServerMessageRequest
java.lang.Object
java.lang.Record
com.priint.pubserverapi.servermessages.ServerMessageRequest
- Record Components:
messagingCenter- identifier of the messaging center responsible for routing the message (e.g."priint:planner")topic- topic within the messaging center used to categorize the message (e.g."rendering-status")subject- short title or subject of the messagecontent- main textual content of the messagesenderComponent- name of the server component that generated the message (e.g."rendering-service")recipientUserIds- list of user IDs that should receive the messageprocessReference- optional information about the BPM process that sent the message; references the associatedProcessReferencesenderLogin- login of the user who initiated the process which sent the messageexternalId- optional external identifier for correlating the message with object identifier
public record ServerMessageRequest(String messagingCenter, String topic, String subject, String content, String senderComponent, List<String> recipientUserIds, ProcessReference processReference, String senderLogin, String externalId)
extends Record
Request object used to send a message to the messaging system.
This record represents a message generated by a server-side component that should be delivered to one or more users through a specific messaging center and topic.
Typical usage includes system notifications such as rendering status, processing updates, warnings, or informational messages.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServerMessageRequest(String messagingCenter, String topic, String subject, String content, String senderComponent, List<String> recipientUserIds, ProcessReference processReference, String senderLogin, String externalId) Creates an instance of aServerMessageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessagingCenterrecord component.Returns the value of theprocessReferencerecord component.Returns the value of therecipientUserIdsrecord component.Returns the value of thesenderComponentrecord component.Returns the value of thesenderLoginrecord component.subject()Returns the value of thesubjectrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerMessageRequest
public ServerMessageRequest(String messagingCenter, String topic, String subject, String content, String senderComponent, List<String> recipientUserIds, ProcessReference processReference, String senderLogin, String externalId) Creates an instance of aServerMessageRequestrecord class.- Parameters:
messagingCenter- the value for themessagingCenterrecord componenttopic- the value for thetopicrecord componentsubject- the value for thesubjectrecord componentcontent- the value for thecontentrecord componentsenderComponent- the value for thesenderComponentrecord componentrecipientUserIds- the value for therecipientUserIdsrecord componentprocessReference- the value for theprocessReferencerecord componentsenderLogin- the value for thesenderLoginrecord componentexternalId- the value for theexternalIdrecord 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). -
messagingCenter
Returns the value of themessagingCenterrecord component.- Returns:
- the value of the
messagingCenterrecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
senderComponent
Returns the value of thesenderComponentrecord component.- Returns:
- the value of the
senderComponentrecord component
-
recipientUserIds
Returns the value of therecipientUserIdsrecord component.- Returns:
- the value of the
recipientUserIdsrecord component
-
processReference
Returns the value of theprocessReferencerecord component.- Returns:
- the value of the
processReferencerecord component
-
senderLogin
Returns the value of thesenderLoginrecord component.- Returns:
- the value of the
senderLoginrecord component
-
externalId
Returns the value of theexternalIdrecord component.- Returns:
- the value of the
externalIdrecord component
-