Record Class LocalDispatchDescriptor
java.lang.Object
java.lang.Record
io.fluxzero.sdk.publishing.LocalDispatchDescriptor
- Record Components:
payloadClass- the runtime class of the dispatched payloadmessageType- the type of message being dispatchedtopic- the dispatch topic, ornullwhen no topic was supplied
public record LocalDispatchDescriptor(Class<?> payloadClass, MessageType messageType, String topic)
extends Record
Describes the message characteristics that remain constant for a prepared local-dispatch policy.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalDispatchDescriptor(Class<?> payloadClass, MessageType messageType, String topic) Creates an instance of aLocalDispatchDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageTyperecord component.Class<?> Returns the value of thepayloadClassrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalDispatchDescriptor
Creates an instance of aLocalDispatchDescriptorrecord class.- Parameters:
payloadClass- the value for thepayloadClassrecord componentmessageType- the value for themessageTyperecord componenttopic- the value for thetopicrecord component
-
-
Method Details
-
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). -
payloadClass
Returns the value of thepayloadClassrecord component.- Returns:
- the value of the
payloadClassrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
topic
-