public abstract class SingleShardOperationRequest<T extends SingleShardOperationRequest> extends ActionRequest<T> implements IndicesRequest
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected String |
index |
static IndicesOptions |
INDICES_OPTIONS |
headers| Modifier | Constructor and Description |
|---|---|
protected |
SingleShardOperationRequest() |
protected |
SingleShardOperationRequest(ActionRequest request) |
protected |
SingleShardOperationRequest(ActionRequest request,
String index) |
protected |
SingleShardOperationRequest(String index) |
| Modifier and Type | Method and Description |
|---|---|
String |
index() |
T |
index(String index)
Sets the 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) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
listenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextprotected String index
public static final IndicesOptions INDICES_OPTIONS
protected SingleShardOperationRequest()
protected SingleShardOperationRequest(String index)
protected SingleShardOperationRequest(ActionRequest request)
protected SingleShardOperationRequest(ActionRequest request, String index)
public ActionRequestValidationException validate()
validate in class ActionRequest<T extends SingleShardOperationRequest>public String index()
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic boolean operationThreaded()
public final T operationThreaded(boolean threadedOperation)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends SingleShardOperationRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends SingleShardOperationRequest>IOExceptionCopyright © 2009–2016. All rights reserved.