public abstract class ShardReplicationOperationRequest<T extends ShardReplicationOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
DEFAULT_TIMEOUT |
protected String |
index |
protected TimeValue |
timeout |
headers| Modifier | Constructor and Description |
|---|---|
protected |
ShardReplicationOperationRequest() |
protected |
ShardReplicationOperationRequest(ActionRequest request)
Creates a new request that inherits headers and context from the request provided as argument.
|
protected |
ShardReplicationOperationRequest(T request)
Copy constructor that creates a new request that is a copy of the one provided as an argument.
|
protected |
ShardReplicationOperationRequest(T request,
ActionRequest originalRequest)
Copy constructor that creates a new request that is a copy of the one provided as an argument.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHaveDuplicates()
Is this request can potentially be dup on a single shard.
|
WriteConsistencyLevel |
consistencyLevel() |
T |
consistencyLevel(WriteConsistencyLevel consistencyLevel)
Sets the consistency level of write.
|
String |
index() |
T |
index(String index) |
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
boolean |
operationThreaded()
Controls if the operation will be executed on a separate thread when executed locally.
|
T |
operationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally.
|
void |
readFrom(StreamInput in) |
ReplicationType |
replicationType()
Deprecated.
will be removed in 2.0.0. See https://github.com/elastic/elasticsearch/pull/10171
|
T |
replicationType(ReplicationType replicationType)
Deprecated.
will be removed in 2.0.0. See https://github.com/elastic/elasticsearch/pull/10171
|
T |
replicationType(String replicationType)
Deprecated.
will be removed in 2.0.0. See https://github.com/elastic/elasticsearch/pull/10171
|
TimeValue |
timeout() |
T |
timeout(String timeout)
A timeout to wait if the index operation can't be performed immediately.
|
T |
timeout(TimeValue timeout)
A timeout to wait if the index operation can't be performed immediately.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
listenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic static final TimeValue DEFAULT_TIMEOUT
protected TimeValue timeout
protected String index
protected ShardReplicationOperationRequest()
protected ShardReplicationOperationRequest(ActionRequest request)
protected ShardReplicationOperationRequest(T request)
protected ShardReplicationOperationRequest(T request, ActionRequest originalRequest)
public boolean canHaveDuplicates()
public final boolean operationThreaded()
public final T operationThreaded(boolean threadedOperation)
public final T timeout(TimeValue timeout)
public final T timeout(String timeout)
public TimeValue timeout()
public String index()
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequest@Deprecated public ReplicationType replicationType()
@Deprecated public final T replicationType(ReplicationType replicationType)
@Deprecated public final T replicationType(String replicationType)
public WriteConsistencyLevel consistencyLevel()
public final T consistencyLevel(WriteConsistencyLevel consistencyLevel)
WriteConsistencyLevel.DEFAULTpublic ActionRequestValidationException validate()
validate in class ActionRequest<T extends ShardReplicationOperationRequest>public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends ShardReplicationOperationRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends ShardReplicationOperationRequest>IOExceptionCopyright © 2009–2016. All rights reserved.