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
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
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
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutgetShouldStoreResult, 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()
TimeValuepublic TimeValue ackTimeout()
AckedRequestackTimeout in interface AckedRequestpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class MasterNodeRequest<Request extends MasterNodeRequest<Request>>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class MasterNodeRequest<Request extends MasterNodeRequest<Request>>java.io.IOException