java.lang.Object
io.lettuce.core.event.cluster.AdaptiveRefreshTriggeredEvent
- All Implemented Interfaces:
Event
public class AdaptiveRefreshTriggeredEvent extends Object implements Event
Event when a topology refresh is about to start by an adaptive refresh trigger.
- Since:
- 5.2
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description AdaptiveRefreshTriggeredEvent(Supplier<Partitions> partitionsSupplier, Runnable topologyRefreshScheduler) -
Method Summary
Modifier and Type Method Description PartitionsgetPartitions()Retrieve the currently known partitions.voidscheduleRefresh()Schedules a new topology refresh.
-
Constructor Details
-
AdaptiveRefreshTriggeredEvent
public AdaptiveRefreshTriggeredEvent(Supplier<Partitions> partitionsSupplier, Runnable topologyRefreshScheduler)
-
-
Method Details
-
scheduleRefresh
public void scheduleRefresh()Schedules a new topology refresh. Refresh happens asynchronously. -
getPartitions
Retrieve the currently known partitions.- Returns:
- the currently known topology view. The view is mutable and changes over time.
-