Interface MessageHandler<T>

Type Parameters:
T - payload type
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 MessageHandler<T>
Callback invoked for each message received on a subscribed channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handles a received message.
  • Method Details

    • onMessage

      void onMessage(IncomingMessage<T> message)
      Handles a received message.
      Parameters:
      message - received message with lazy payload decoding