IndicesRequest, IndicesRequest.Replaceable, AckedRequest, Streamable, Writeable, TaskAwareRequestpublic class CloseIndexRequest extends AcknowledgedRequest<CloseIndexRequest> implements IndicesRequest.Replaceable
IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
CloseIndexRequest() |
|
CloseIndexRequest(java.lang.String... indices) |
Constructs a new close index request for the specified index.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String[] |
indices() |
The indices to be closed
|
CloseIndexRequest |
indices(java.lang.String... indices) |
Sets the indices to be closed
|
IndicesOptions |
indicesOptions() |
Specifies what type of requested indices to ignore and how to deal with wildcard expressions.
|
CloseIndexRequest |
indicesOptions(IndicesOptions indicesOptions) |
Specifies what type of requested indices to ignore and how to deal wild wildcard expressions.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
masterNodeTimeoutackTimeout, timeout, timeout, timeoutgetShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic CloseIndexRequest()
public CloseIndexRequest(java.lang.String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String[] indices()
indices in interface IndicesRequestpublic CloseIndexRequest indices(java.lang.String... indices)
indices in interface IndicesRequest.Replaceableindices - the indices to be closedpublic IndicesOptions indicesOptions()
indicesOptions in interface IndicesRequestpublic CloseIndexRequest indicesOptions(IndicesOptions indicesOptions)
indicesOptions - the desired behaviour regarding indices to ignore and wildcard indices expressionspublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AcknowledgedRequest<CloseIndexRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AcknowledgedRequest<CloseIndexRequest>java.io.IOException