Interface MessageListener

All Known Implementing Classes:
KeyExpirationEventMessageListener, KeyspaceEventMessageListener, MessageListenerAdapter
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
Listener of messages published in Redis. A MessageListener can implement SubscriptionListener to receive notifications for subscription states.
Author:
Costin Leau, Christoph Strobl
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(Message message, byte[] pattern)
    Callback for processing received objects through Redis.
  • Method Details

    • onMessage

      void onMessage(Message message, @Nullable byte[] pattern)
      Callback for processing received objects through Redis.
      Parameters:
      message - message must not be null.
      pattern - pattern matching the channel (if specified) - can be null.