public class BasicClusterStateTaskConfig extends Object implements ClusterStateTaskConfig
| Modifier and Type | Method and Description |
|---|---|
static ClusterStateTaskConfig |
create(Priority priority)
Build a cluster state update task configuration with the
specified
Priority and no timeout. |
static ClusterStateTaskConfig |
create(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.
|
public TimeValue timeout()
ClusterStateTaskConfigClusterStateTaskListener.onFailure(String, Throwable)
is invoked.timeout in interface ClusterStateTaskConfigpublic Priority priority()
ClusterStateTaskConfigPriority for this cluster state update task configuration.priority in interface ClusterStateTaskConfigpublic static ClusterStateTaskConfig create(Priority priority)
Priority and no timeout.priority - the priority for the associated cluster state
update taskpublic static ClusterStateTaskConfig create(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 taskCopyright © 2009–2017. All rights reserved.