org.elasticsearch.client.action.admin.indices.close
Class CloseIndexRequestBuilder
java.lang.Object
org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>
org.elasticsearch.client.action.admin.indices.close.CloseIndexRequestBuilder
- All Implemented Interfaces:
- RequestBuilder<CloseIndexRequest,CloseIndexResponse>
public class CloseIndexRequestBuilder
- extends BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseIndexRequestBuilder
public CloseIndexRequestBuilder(IndicesAdminClient indicesClient,
java.lang.String index)
setTimeout
public CloseIndexRequestBuilder setTimeout(TimeValue timeout)
- Timeout to wait for the operation to be acknowledged by current cluster nodes. Defaults
to 10s.
setTimeout
public CloseIndexRequestBuilder setTimeout(java.lang.String timeout)
- Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults
to 10s.
setMasterNodeTimeout
public CloseIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
- Sets the master node timeout in case the master has not yet been discovered.
setMasterNodeTimeout
public CloseIndexRequestBuilder setMasterNodeTimeout(java.lang.String timeout)
- Sets the master node timeout in case the master has not yet been discovered.
doExecute
protected void doExecute(ActionListener<CloseIndexResponse> listener)
- Specified by:
doExecute
in class BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>