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 Summary
Constructors Constructor Description ClusterTopologyChangedEvent(List<RedisClusterNode> before, List<RedisClusterNode> after)Creates a newClusterTopologyChangedEvent. -
Method Summary
Modifier and Type Method Description List<RedisClusterNode>after()Returns the cluster topology view after the topology changed.List<RedisClusterNode>before()Returns the cluster topology view before the topology changed.StringtoString()
-
Constructor Details
-
ClusterTopologyChangedEvent
Creates a newClusterTopologyChangedEvent.- Parameters:
before- the cluster topology view before the topology changed, must not benullafter- the cluster topology view after the topology changed, must not benull
-
-
Method Details
-
before
Returns the cluster topology view before the topology changed.- Returns:
- the cluster topology view before the topology changed.
-
after
Returns the cluster topology view after the topology changed.- Returns:
- the cluster topology view after the topology changed.
-
toString
-