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

io.lettuce.core.masterreplica.NoOpPushHandler Maven / Gradle / Ivy

Go to download

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.

The newest version!
package io.lettuce.core.masterreplica;

import java.util.Collection;
import java.util.Collections;

import io.lettuce.core.api.push.PushListener;
import io.lettuce.core.protocol.PushHandler;

/**
 * @author Mark Paluch
 */
enum NoOpPushHandler implements PushHandler {

    INSTANCE;

    @Override
    public void addListener(PushListener listener) {

    }

    @Override
    public void removeListener(PushListener listener) {

    }

    @Override
    public Collection getPushListeners() {
        return Collections.emptyList();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy