Interface MessageOutSuccessHandler<T extends BabelMessage>

Type Parameters:
T - the concrete BabelMessage type 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.

@FunctionalInterface public interface MessageOutSuccessHandler<T extends BabelMessage>
Functional interface invoked when an outbound BabelMessage has been successfully delivered to the remote node.

Instances are created internally by BabelProtocolHolder to wrap protocol methods annotated with @UponMessageOutSuccess.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the functional method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handles the confirmation that a message was successfully sent.
  • Field Details

    • HANDLER_METHOD_NAME

      static final String HANDLER_METHOD_NAME
      The name of the functional method. Used internally for lambda generation.
      See Also:
  • Method Details

    • handleMessage

      void handleMessage(T msg, BabelNode node)
      Handles the confirmation that a message was successfully sent.
      Parameters:
      msg - the message that was delivered; its runtime type matches T
      node - the remote node that received the message