public abstract class AcknowledgedRequest<Request extends MasterNodeRequest<Request>> extends MasterNodeRequest<Request> implements AckedRequest
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
DEFAULT_ACK_TIMEOUT |
protected TimeValue |
timeout |
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AcknowledgedRequest() |
| Modifier and Type | Method and Description |
|---|---|
TimeValue |
ackTimeout()
Returns the acknowledgement timeout
|
protected void |
readTimeout(StreamInput in)
Reads the timeout value
|
TimeValue |
timeout()
Returns the current timeout
|
Request |
timeout(java.lang.String timeout)
Allows to set the timeout
|
Request |
timeout(TimeValue timeout)
Allows to set the timeout
|
protected void |
writeTimeout(StreamOutput out)
writes the timeout value
|
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout, readFrom, writeTogetShouldStoreResult, validategetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutcreateTask, getDescription, setParentTaskpublic static final TimeValue DEFAULT_ACK_TIMEOUT
protected TimeValue timeout
public final Request timeout(java.lang.String timeout)
timeout - timeout as a string (e.g. 1s)public final Request timeout(TimeValue timeout)
timeout - timeout as a TimeValuepublic final TimeValue timeout()
TimeValueprotected void readTimeout(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void writeTimeout(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic TimeValue ackTimeout()
AckedRequestackTimeout in interface AckedRequest