Interface Consumer.MessageHandler

Enclosing interface:
Consumer
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 static interface Consumer.MessageHandler
Contract to process a message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Consumer.Context context, Message message)
    Process a message
  • Method Details

    • handle

      void handle(Consumer.Context context, Message message)
      Process a message
      Parameters:
      context - message context
      message - message