public abstract class AcknowledgedRequest<T extends MasterNodeRequest<T>> extends MasterNodeRequest<T> implements AckedRequest
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
DEFAULT_ACK_TIMEOUT |
protected TimeValue |
timeout |
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Modifier | Constructor and Description |
|---|---|
protected |
AcknowledgedRequest() |
protected |
AcknowledgedRequest(ActionRequest request) |
| 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
|
T |
timeout(String timeout)
Allows to set the timeout
|
T |
timeout(TimeValue timeout)
Allows to set the timeout
|
protected void |
writeTimeout(StreamOutput out)
writes the timeout value
|
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout, readFrom, writeTocreateTask, createTask, setParentTaskvalidategetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic static final TimeValue DEFAULT_ACK_TIMEOUT
protected TimeValue timeout
protected AcknowledgedRequest()
protected AcknowledgedRequest(ActionRequest request)
public final T timeout(String timeout)
timeout - timeout as a string (e.g. 1s)public final T timeout(TimeValue timeout)
timeout - timeout as a TimeValuepublic final TimeValue timeout()
TimeValueprotected void readTimeout(StreamInput in) throws IOException
IOExceptionprotected void writeTimeout(StreamOutput out) throws IOException
IOExceptionpublic TimeValue ackTimeout()
AckedRequestackTimeout in interface AckedRequestCopyright © 2009–2017. All rights reserved.