org.springframework.data.mongodb.core.messaging

Interface MessageListener<S,T>

  • Type Parameters:
    S - source message type.
    T - target message 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 MessageListener<S,T>
    Listener interface to receive delivery of Messages.
    Since:
    2.1
    Author:
    Christoph Strobl
    • Method Detail

      • onMessage

        void onMessage(Message<S,T> message)
        Callback invoked on receiving Message.
        Parameters:
        message - never null.