public abstract class IndicesReplicationOperationRequest<T extends IndicesReplicationOperationRequest> extends ActionRequest<T> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected WriteConsistencyLevel |
consistencyLevel |
protected String[] |
indices |
protected ReplicationType |
replicationType |
protected TimeValue |
timeout |
headers| Modifier | Constructor and Description |
|---|---|
protected |
IndicesReplicationOperationRequest() |
protected |
IndicesReplicationOperationRequest(ActionRequest actionRequest) |
| Modifier and Type | Method and Description |
|---|---|
WriteConsistencyLevel |
consistencyLevel() |
T |
consistencyLevel(WriteConsistencyLevel consistencyLevel)
Sets the consistency level of write.
|
String[] |
indices()
Returns the array of indices that the action relates to
|
T |
indices(String[] indices)
The indices the request will execute against.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
T |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in) |
ReplicationType |
replicationType() |
T |
replicationType(ReplicationType replicationType)
Sets the replication type.
|
T |
replicationType(String replicationType)
Sets the replication type.
|
TimeValue |
timeout() |
T |
timeout(String timeout)
A timeout to wait if the delete by query operation can't be performed immediately.
|
T |
timeout(TimeValue timeout)
A timeout to wait if the delete by query 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, putInContextprotected TimeValue timeout
protected String[] indices
protected ReplicationType replicationType
protected WriteConsistencyLevel consistencyLevel
protected IndicesReplicationOperationRequest()
protected IndicesReplicationOperationRequest(ActionRequest actionRequest)
public TimeValue timeout()
public final T timeout(TimeValue timeout)
public T timeout(String timeout)
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic T indicesOptions(IndicesOptions indicesOptions)
public final T indices(String[] indices)
indices in interface IndicesRequest.Replaceablepublic ReplicationType replicationType()
public final T replicationType(ReplicationType replicationType)
public WriteConsistencyLevel consistencyLevel()
public final T consistencyLevel(WriteConsistencyLevel consistencyLevel)
WriteConsistencyLevel.DEFAULTpublic ActionRequestValidationException validate()
validate in class ActionRequest<T extends IndicesReplicationOperationRequest>public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<T extends IndicesReplicationOperationRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<T extends IndicesReplicationOperationRequest>IOExceptionCopyright © 2009–2016. All rights reserved.