org.elasticsearch.client.action.admin.indices.close
Class CloseIndexRequestBuilder

java.lang.Object
  extended by org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>
      extended by org.elasticsearch.client.action.admin.indices.close.CloseIndexRequestBuilder
All Implemented Interfaces:
RequestBuilder<CloseIndexRequest,CloseIndexResponse>

public class CloseIndexRequestBuilder
extends BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
CloseIndexRequestBuilder(IndicesAdminClient indicesClient, java.lang.String index)
           
 
Method Summary
protected  void doExecute(ActionListener<CloseIndexResponse> listener)
           
 CloseIndexRequestBuilder setMasterNodeTimeout(java.lang.String timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 CloseIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 CloseIndexRequestBuilder setTimeout(java.lang.String timeout)
          Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
 CloseIndexRequestBuilder setTimeout(TimeValue timeout)
          Timeout to wait for the operation to be acknowledged by current cluster nodes.
 
Methods inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder
execute, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseIndexRequestBuilder

public CloseIndexRequestBuilder(IndicesAdminClient indicesClient,
                                java.lang.String index)
Method Detail

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>