Interface MessageOutFailedHandler<T extends BabelMessage>
- Type Parameters:
T- the concreteBabelMessagetype this handler processes
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface invoked when an attempt to send an outbound
BabelMessage failed.
Instances are created internally by BabelProtocolHolder to wrap protocol methods annotated with
@UponMessageOutFailed.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleMessage(T msg, BabelNode node, @Nullable Throwable cause) Handles a send failure for an outbound message.
-
Field Details
-
HANDLER_METHOD_NAME
The name of the functional method. Used internally for lambda generation.- See Also:
-
-
Method Details
-
handleMessage
Handles a send failure for an outbound message.- Parameters:
msg- the message that could not be delivered; its runtime type matchesTnode- the remote node to which the message was addressedcause- the exception describing why the send failed
-