Module org.elasticsearch.server
Class PeerRecoverySourceClusterStateDelay
java.lang.Object
org.elasticsearch.indices.recovery.PeerRecoverySourceClusterStateDelay
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
ensureClusterStateVersion
(long clusterStateVersion, ClusterService clusterService, Executor executor, ThreadContext threadContext, ActionListener<T> listener, Consumer<ActionListener<T>> proceedWithRecovery) Waits for the given cluster state version to be applied locally before proceeding with recovery
-
Method Details
-
ensureClusterStateVersion
public static <T> void ensureClusterStateVersion(long clusterStateVersion, ClusterService clusterService, Executor executor, ThreadContext threadContext, ActionListener<T> listener, Consumer<ActionListener<T>> proceedWithRecovery) Waits for the given cluster state version to be applied locally before proceeding with recovery
-