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()
ClusterStateTaskConfig
ClusterStateTaskListener.onFailure(String, Throwable)
is invoked.timeout
in interface ClusterStateTaskConfig
public Priority priority()
ClusterStateTaskConfig
Priority
for this cluster state update task configuration.priority
in interface ClusterStateTaskConfig
public 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–2016. All rights reserved.