Example usage for org.springframework.data.redis.connection MessageListener onMessage

List of usage examples for org.springframework.data.redis.connection MessageListener onMessage

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection MessageListener onMessage.

Prototype

void onMessage(Message message, @Nullable byte[] pattern);

Source Link

Document

Callback for processing received objects through Redis.

Usage

From source file:org.springframework.data.redis.listener.RedisMessageListenerContainer.java

/**
 * Execute the specified listener./*from w  ww  . j a  v a2 s  .  c  om*/
 * 
 * @see #handleListenerException
 */
protected void executeListener(MessageListener listener, Message message, byte[] pattern) {
    try {
        listener.onMessage(message, pattern);
    } catch (Throwable ex) {
        handleListenerException(ex);
    }
}