
io.lettuce.core.masterreplica.NoOpPushHandler 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.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