All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lambdaworks.redis.pubsub.RedisPubSubAdapter Maven / Gradle / Ivy

There is a newer version: 3.40.2
Show newest version
// Copyright (C) 2011 - Will Glozer.  All rights reserved.

package com.lambdaworks.redis.pubsub;

/**
 * Convenience adapter with an empty implementation of all
 * {@link RedisPubSubListener} callback methods.
 *
 * @param  Value type.
 *
 * @author Will Glozer
 */
public class RedisPubSubAdapter implements RedisPubSubListener {
    @Override
    public void message(String channel, V message) {
    }

    @Override
    public void message(String pattern, String channel, V message) {
    }

    @Override
    public void subscribed(String channel, long count) {
    }

    @Override
    public void psubscribed(String pattern, long count) {
    }

    @Override
    public void unsubscribed(String channel, long count) {
    }

    @Override
    public void punsubscribed(String pattern, long count) {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy