public abstract class IndicesReplicationOperationRequest<T extends IndicesReplicationOperationRequest> extends ActionRequest<T> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
Modifier and Type | Field and Description |
---|---|
protected WriteConsistencyLevel |
consistencyLevel |
protected String[] |
indices |
protected ReplicationType |
replicationType |
protected TimeValue |
timeout |
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, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
protected 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()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public T indicesOptions(IndicesOptions indicesOptions)
public final T indices(String[] indices)
indices
in interface IndicesRequest.Replaceable
public ReplicationType replicationType()
public final T replicationType(ReplicationType replicationType)
public WriteConsistencyLevel consistencyLevel()
public final T consistencyLevel(WriteConsistencyLevel consistencyLevel)
WriteConsistencyLevel.DEFAULT
public ActionRequestValidationException validate()
validate
in class ActionRequest<T extends IndicesReplicationOperationRequest>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<T extends IndicesReplicationOperationRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<T extends IndicesReplicationOperationRequest>
IOException
Copyright © 2009–2015. All rights reserved.