
io.lettuce.core.protocol.PushHandler 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.protocol;
import java.util.Collection;
import io.lettuce.core.api.push.PushListener;
/**
* A handler object that provides access to {@link PushListener}.
*
* @author Mark Paluch
* @since 6.0
*/
public interface PushHandler {
/**
* Add a new {@link PushListener listener}.
*
* @param listener the listener, must not be {@code null}.
*/
void addListener(PushListener listener);
/**
* Remove an existing {@link PushListener listener}.
*
* @param listener the listener, must not be {@code null}.
*/
void removeListener(PushListener listener);
/**
* Returns a collection of {@link PushListener}.
*
* @return the collection of listeners.
*/
Collection getPushListeners();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy