
io.lettuce.core.cluster.ClusterPushHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
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.cluster;
import java.util.Collection;
import io.lettuce.core.cluster.api.push.RedisClusterPushListener;
/**
* A handler object that provides access to {@link RedisClusterPushListener}.
*
* @author Mark Paluch
* @since 6.0
*/
public interface ClusterPushHandler {
/**
* Add a new {@link RedisClusterPushListener listener}.
*
* @param listener the listener, must not be {@code null}.
*/
void addListener(RedisClusterPushListener listener);
/**
* Remove an existing {@link RedisClusterPushListener listener}.
*
* @param listener the listener, must not be {@code null}.
*/
void removeListener(RedisClusterPushListener listener);
/**
* Returns a collection of {@link RedisClusterPushListener}.
*
* @return the collection of listeners.
*/
Collection getPushListeners();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy