Record Class MessageOutFailedEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.events.MessageOutFailedEvent
- Record Components:
message- the message that could not be deliveredreceiver- the remote node to which the message was addressedcause- the exception describing the failure
- All Implemented Interfaces:
BabelEvent, MessageEvent
public record MessageOutFailedEvent(BabelMessage message, BabelNode receiver, @Nullable Throwable cause)
extends Record
implements MessageEvent
MessageEvent delivered when an attempt to send a BabelMessage
to a remote node failed.
Protocols handle these failures by annotating methods with
@UponMessageOutFailed.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageOutFailedEvent(BabelMessage message, BabelNode receiver, @Nullable Throwable cause) Creates an instance of aMessageOutFailedEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Throwablecause()Returns the value of thecauserecord component.final 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
-
cause
-