Class ClusterStateWaitUntilThresholdStep

java.lang.Object
org.elasticsearch.xpack.core.ilm.Step
org.elasticsearch.xpack.core.ilm.ClusterStateWaitStep
org.elasticsearch.xpack.core.ilm.ClusterStateWaitUntilThresholdStep

public class ClusterStateWaitUntilThresholdStep extends ClusterStateWaitStep
This step wraps an ClusterStateWaitStep in order to be able to manipulate what the next step will be, depending on the result of the wrapped ClusterStateWaitStep.

If the action response is complete, the ClusterStateWaitUntilThresholdStep's nextStepKey will be the nextStepKey of the wrapped action. When the threshold level is surpassed, if the underlying step's condition was not met, the nextStepKey will be changed to the provided nextKeyOnThresholdBreach and this step will stop waiting.

Failures encountered whilst executing the wrapped action will be propagated directly.