类 TimedRequest
java.lang.Object
org.easysearch.client.TimedRequest
- 所有已实现的接口:
Validatable
- 直接已知子类:
CloseIndexRequest,CreateIndexRequest,DeleteAliasRequest,DeleteComponentTemplateRequest,DeleteComposableIndexTemplateRequest,DeleteLifecyclePolicyRequest,DeleteSnapshotLifecyclePolicyRequest,ExecuteSnapshotLifecyclePolicyRequest,ExecuteSnapshotLifecycleRetentionRequest,ExplainLifecycleRequest,FreezeIndexRequest,GetIndexRequest,GetLifecyclePolicyRequest,GetMappingsRequest,GetSnapshotLifecyclePolicyRequest,GetSnapshotLifecycleStatsRequest,LifecycleManagementStatusRequest,PutComponentTemplateRequest,PutComposableIndexTemplateRequest,PutLifecyclePolicyRequest,PutMappingRequest,PutSnapshotLifecyclePolicyRequest,RemoveIndexLifecyclePolicyRequest,ResizeRequest,RetryLifecyclePolicyRequest,RolloverRequest,SimulateIndexTemplateRequest,SnapshotLifecycleManagementStatusRequest,StartILMRequest,StartSLMRequest,StopILMRequest,StopSLMRequest,UnfreezeIndexRequest
public abstract class TimedRequest extends java.lang.Object implements Validatable
A base request for any requests that supply timeouts.
Please note, any requests that use a ackTimeout should set timeout as they
represent the same backing field on the server.
-
字段概要
字段 修饰符和类型 字段 说明 static org.easysearch.common.unit.TimeValueDEFAULT_ACK_TIMEOUTstatic org.easysearch.common.unit.TimeValueDEFAULT_MASTER_NODE_TIMEOUT从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
构造器概要
构造器 构造器 说明 TimedRequest() -
方法概要
修饰符和类型 方法 说明 org.easysearch.common.unit.TimeValuemasterNodeTimeout()Returns the timeout for the request to be completed on the master nodevoidsetMasterTimeout(org.easysearch.common.unit.TimeValue masterTimeout)Sets the timeout to connect to the master nodevoidsetTimeout(org.easysearch.common.unit.TimeValue timeout)Sets the timeout to wait for the all the nodes to acknowledgeorg.easysearch.common.unit.TimeValuetimeout()Returns the request timeout从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.client.Validatable
validate
-
字段详细资料
-
DEFAULT_ACK_TIMEOUT
public static final org.easysearch.common.unit.TimeValue DEFAULT_ACK_TIMEOUT -
DEFAULT_MASTER_NODE_TIMEOUT
public static final org.easysearch.common.unit.TimeValue DEFAULT_MASTER_NODE_TIMEOUT
-
-
构造器详细资料
-
TimedRequest
public TimedRequest()
-
-
方法详细资料
-
setTimeout
public void setTimeout(org.easysearch.common.unit.TimeValue timeout)Sets the timeout to wait for the all the nodes to acknowledge- 参数:
timeout- timeout as aTimeValue
-
setMasterTimeout
public void setMasterTimeout(org.easysearch.common.unit.TimeValue masterTimeout)Sets the timeout to connect to the master node- 参数:
masterTimeout- timeout as aTimeValue
-
timeout
public org.easysearch.common.unit.TimeValue timeout()Returns the request timeout -
masterNodeTimeout
public org.easysearch.common.unit.TimeValue masterNodeTimeout()Returns the timeout for the request to be completed on the master node
-