public interface ClusterStateTaskConfig
Modifier and Type | Interface and Description |
---|---|
static class |
ClusterStateTaskConfig.Basic |
Modifier and Type | Method and Description |
---|---|
static ClusterStateTaskConfig |
build(Priority priority)
Build a cluster state update task configuration with the
specified
Priority and no timeout. |
static ClusterStateTaskConfig |
build(Priority priority,
TimeValue timeout)
Build a cluster state update task configuration with the
specified
Priority and timeout. |
Priority |
priority()
The
Priority for this cluster state update task configuration. |
TimeValue |
timeout()
The timeout for this cluster state update task configuration.
|
@Nullable TimeValue timeout()
ClusterStateTaskListener.onFailure(String, Exception)
is invoked.Priority priority()
Priority
for this cluster state update task configuration.static ClusterStateTaskConfig build(Priority priority)
Priority
and no timeout.priority
- the priority for the associated cluster state
update taskstatic ClusterStateTaskConfig build(Priority priority, TimeValue timeout)
Priority
and timeout.priority
- the priority for the associated cluster state
update tasktimeout
- the timeout for the associated cluster state
update task