Interface MessageListener<T>

Type Parameters:
T - the type received by the listener.
All Known Subinterfaces:
EventHubsBatchMessageListener, EventHubsRecordMessageListener, ServiceBusRecordMessageListener
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 MessageListener<T>
Top level interface for Azure message listeners.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(T message)
    Invoked with message from any Azure messaging service.
  • Method Details

    • onMessage

      void onMessage(T message)
      Invoked with message from any Azure messaging service.
      Parameters:
      message - the message to be processed.