Class 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 Detail

      • 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 Detail

      • 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.