
io.lettuce.core.masterreplica.MasterReplicaTopologyChangedEvent 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.List;
import io.lettuce.core.RedisURI;
import io.lettuce.core.event.Event;
import io.lettuce.core.models.role.RedisNodeDescription;
/**
* Event triggered after obtaining the Master/Replica topology.
*
* @author Mark Paluch
* @since 6.1
*/
class MasterReplicaTopologyChangedEvent implements Event {
private final RedisURI source;
private final List nodes;
public MasterReplicaTopologyChangedEvent(RedisURI source, List nodes) {
this.source = source;
this.nodes = nodes;
}
public RedisURI getSource() {
return source;
}
public List getNodes() {
return nodes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy