Package org.elasticsearch.cluster
Interface ClusterStateTaskConfig
- All Known Implementing Classes:
AckedClusterStateUpdateTask,ClusterStateTaskConfig.Basic,ClusterStateUpdateTask,LocalClusterUpdateTask,MigrationResultsUpdateTask,SystemIndexMetadataUpgradeService.SystemIndexMetadataUpdateTask
public interface ClusterStateTaskConfig
Cluster state update task configuration for timeout and priority
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterStateTaskConfigBuild a cluster state update task configuration with the specifiedPriorityand no timeout.static ClusterStateTaskConfigBuild a cluster state update task configuration with the specifiedPriorityand timeout.priority()ThePriorityfor this cluster state update task configuration.timeout()The timeout for this cluster state update task configuration.
-
Method Details
-
timeout
The timeout for this cluster state update task configuration. If the cluster state update task isn't processed within this timeout, the associatedClusterStateTaskListener.onFailure(String, Exception)is invoked.- Returns:
- the timeout, or null if one is not set
-
priority
Priority priority()ThePriorityfor this cluster state update task configuration.- Returns:
- the priority
-
build
Build a cluster state update task configuration with the specifiedPriorityand no timeout.- Parameters:
priority- the priority for the associated cluster state update task- Returns:
- the resulting cluster state update task configuration
-
build
Build a cluster state update task configuration with the specifiedPriorityand timeout.- Parameters:
priority- the priority for the associated cluster state update tasktimeout- the timeout for the associated cluster state update task- Returns:
- the result cluster state update task configuration
-