Record Class MulticastProtocolMessage
java.lang.Object
java.lang.Record
org.j7m.middleware.registry.mcast.MulticastProtocolMessage
- Record Components:
envelope- protocol envelopequery- optional query payloadrecords- response records
public record MulticastProtocolMessage(MulticastMessageEnvelope envelope, org.j7m.middleware.registry.api.RegistryQuery query, List<org.j7m.middleware.registry.api.RegistryRecord> records)
extends Record
Immutable multicast protocol packet payload.
-
Constructor Summary
ConstructorsConstructorDescriptionMulticastProtocolMessage(MulticastMessageEnvelope envelope, org.j7m.middleware.registry.api.RegistryQuery query, List<org.j7m.middleware.registry.api.RegistryRecord> records) Creates immutable response records. -
Method Summary
Modifier and TypeMethodDescriptionenvelope()Returns the value of theenveloperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.j7m.middleware.registry.api.RegistryQueryquery()Returns the value of thequeryrecord component.List<org.j7m.middleware.registry.api.RegistryRecord> records()Returns the value of therecordsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MulticastProtocolMessage
public MulticastProtocolMessage(MulticastMessageEnvelope envelope, org.j7m.middleware.registry.api.RegistryQuery query, List<org.j7m.middleware.registry.api.RegistryRecord> records) Creates immutable response records.
-
-
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). -
envelope
-
query
-
records
-