Module lettuce.core

Class ClusterTopologyChangedEvent

java.lang.Object
io.lettuce.core.cluster.event.ClusterTopologyChangedEvent
All Implemented Interfaces:
Event

public class ClusterTopologyChangedEvent
extends Object
implements Event
Signals a discovered cluster topology change. The event carries the view before() and after the change.
Since:
3.4
Author:
Mark Paluch
  • Constructor Details

    • ClusterTopologyChangedEvent

      public ClusterTopologyChangedEvent​(List<RedisClusterNode> before, List<RedisClusterNode> after)
      Parameters:
      before - the cluster topology view before the topology changed, must not be null
      after - the cluster topology view after the topology changed, must not be null
  • Method Details

    • before

      public List<RedisClusterNode> before()
      Returns the cluster topology view before the topology changed.
      Returns:
      the cluster topology view before the topology changed.
    • after

      public List<RedisClusterNode> after()
      Returns the cluster topology view after the topology changed.
      Returns:
      the cluster topology view after the topology changed.
    • toString

      public String toString()
      Overrides:
      toString in class Object