Package org.elasticsearch.client
Class TimedRequest
- java.lang.Object
-
- org.elasticsearch.client.TimedRequest
-
- All Implemented Interfaces:
Validatable
- Direct Known Subclasses:
DeleteLicenseRequest,PutLicenseRequest,StartBasicRequest,XPackUsageRequest
public 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.
-
-
Field Summary
Fields Modifier and Type Field Description static TimeValueDEFAULT_ACK_TIMEOUTstatic TimeValueDEFAULT_MASTER_NODE_TIMEOUT
-
Constructor Summary
Constructors Constructor Description TimedRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeValuemasterNodeTimeout()Returns the timeout for the request to be completed on the master nodevoidsetMasterTimeout(TimeValue masterTimeout)voidsetTimeout(TimeValue timeout)TimeValuetimeout()Returns the request timeout-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
-
-
-
Method Detail
-
setTimeout
public void setTimeout(TimeValue timeout)
-
setMasterTimeout
public void setMasterTimeout(TimeValue masterTimeout)
-
timeout
public TimeValue timeout()
Returns the request timeout
-
masterNodeTimeout
public TimeValue masterNodeTimeout()
Returns the timeout for the request to be completed on the master node
-
-