Record Class PublishOptions
java.lang.Object
java.lang.Record
com.iantapply.relay.api.PublishOptions
- Record Components:
correlationId- related message identifier, ornullheaders- immutable application metadata
-
Constructor Summary
ConstructorsConstructorDescriptionPublishOptions(MessageId correlationId, Map<String, String> headers) Creates options and defensively copies application headers. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecorrelationIdrecord component.static PublishOptionsdefaults()Returns options with no correlation identifier or application headers.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublishOptions
-
-
Method Details
-
defaults
Returns options with no correlation identifier or application headers.- Returns:
- empty publish options
-
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). -
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
headers
-