Record Class QueryMessage<R, C extends Query<R>>
java.lang.Object
java.lang.Record
app.dodb.smd.api.query.QueryMessage<R,C>
- All Implemented Interfaces:
Message<C, QueryMessage<R,C>>
-
Constructor Summary
ConstructorsConstructorDescriptionQueryMessage(MessageId messageId, C payload, Metadata metadata) Creates an instance of aQueryMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static <R, C extends Query<R>>
QueryMessage<R, C> final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.metadata()Returns the value of themetadatarecord component.payload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.withMetadata(Metadata metadata)
-
Constructor Details
-
QueryMessage
-
-
Method Details
-
from
-
getMessageId
-
getPayload
-
getMetadata
-
withMetadata
-
toString
-
hashCode
-
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). -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-