Record Class MessageOutSuccessEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.events.MessageOutSuccessEvent
- Record Components:
message- the message that was successfully sentreceiver- the remote node that received the message
- All Implemented Interfaces:
BabelEvent, MessageEvent
public record MessageOutSuccessEvent(BabelMessage message, BabelNode receiver)
extends Record
implements MessageEvent
MessageEvent delivered when a previously sent BabelMessage was
successfully handed off to the remote node.
Protocols handle these confirmations by annotating methods with
@UponMessageOutSuccess.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageOutSuccessEvent(BabelMessage message, BabelNode receiver) Creates an instance of aMessageOutSuccessEventrecord 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.receiver()Returns the value of thereceiverrecord 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
Returns the value of themessagerecord component.- Specified by:
messagein interfaceMessageEvent- Returns:
- the value of the
messagerecord component
-
receiver
-