AckedRequest, Streamable, Writeable, TaskAwareRequestCloseIndexRequest, ClusterRerouteRequest, ClusterUpdateSettingsRequest, CreateIndexRequest, DeleteIndexRequest, DeletePipelineRequest, DeleteRepositoryRequest, DeleteStoredScriptRequest, IndicesAliasesRequest, OpenIndexRequest, PutMappingRequest, PutPipelineRequest, PutRepositoryRequest, PutStoredScriptRequest, ResizeRequest, RolloverRequest, UpdateSettingsRequest, UpgradeSettingsRequest, VerifyRepositoryRequestpublic abstract class AcknowledgedRequest<Request extends MasterNodeRequest<Request>> extends MasterNodeRequest<Request> implements AckedRequest
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static TimeValue |
DEFAULT_ACK_TIMEOUT |
|
protected TimeValue |
timeout |
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Modifier | Constructor | Description |
|---|---|---|
protected |
AcknowledgedRequest() |
| Modifier and Type | Method | 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.
|
masterNodeTimeoutgetShouldStoreResult, validatemasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, 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 interface WriteablewriteTo in class MasterNodeRequest<Request extends MasterNodeRequest<Request>>java.io.IOException