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, masterNodeTimeout
headers
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, writeTo
createTask, createTask, setParentTask
validate
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public 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 TimeValue
public final TimeValue timeout()
TimeValue
protected void readTimeout(StreamInput in) throws IOException
IOException
protected void writeTimeout(StreamOutput out) throws IOException
IOException
public TimeValue ackTimeout()
AckedRequest
ackTimeout
in interface AckedRequest
Copyright © 2009–2017. All rights reserved.