Record Class BroadcastDeliverEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.core.broadcast.events.BroadcastDeliverEvent
- Record Components:
message- the delivered messagesender- the original sender of the broadcast
- All Implemented Interfaces:
BabelEvent, ProtocolEvent
public record BroadcastDeliverEvent(BabelMessage message, BabelNode sender)
extends Record
implements ProtocolEvent
ProtocolEvent emitted by a
BroadcastProviderBabelProtocol when a broadcast message has been received and
is ready to be delivered to local consumer protocols.
The event is routed to all
BroadcastConsumerBabelProtocol instances via the
BroadcastConsumerExtension, which dispatches it to methods annotated with
@UponBroadcastDeliver.
-
Constructor Summary
ConstructorsConstructorDescriptionBroadcastDeliverEvent(BabelMessage message, BabelNode sender) Creates an instance of aBroadcastDeliverEventrecord 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.message()Returns the value of themessagerecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
message
-
sender
-