org.elasticsearch.client.action.admin.indices.refresh
Class RefreshRequestBuilder

java.lang.Object
  extended by org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<RefreshRequest,RefreshResponse>
      extended by org.elasticsearch.client.action.admin.indices.refresh.RefreshRequestBuilder
All Implemented Interfaces:
RequestBuilder<RefreshRequest,RefreshResponse>

public class RefreshRequestBuilder
extends BaseIndicesRequestBuilder<RefreshRequest,RefreshResponse>

A refresh request making all operations performed since the last refresh available for search. The (near) real-time capabilities depends on the index engine used. For example, the robin one requires refresh to be called, but by default a refresh is scheduled periodically.


Field Summary
 
Fields inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
RefreshRequestBuilder(IndicesAdminClient indicesClient)
           
 
Method Summary
protected  void doExecute(ActionListener<RefreshResponse> listener)
           
 RefreshRequestBuilder setIndices(java.lang.String... indices)
           
 RefreshRequestBuilder setListenerThreaded(boolean threadedListener)
          Should the listener be called on a separate thread if needed.
 RefreshRequestBuilder setOperationThreading(BroadcastOperationThreading operationThreading)
          Controls the operation threading model.
 RefreshRequestBuilder setWaitForOperations(boolean waitForOperations)
           
 
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

RefreshRequestBuilder

public RefreshRequestBuilder(IndicesAdminClient indicesClient)
Method Detail

setIndices

public RefreshRequestBuilder setIndices(java.lang.String... indices)

setWaitForOperations

public RefreshRequestBuilder setWaitForOperations(boolean waitForOperations)

setListenerThreaded

public RefreshRequestBuilder setListenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed.


setOperationThreading

public RefreshRequestBuilder setOperationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model.


doExecute

protected void doExecute(ActionListener<RefreshResponse> listener)
Specified by:
doExecute in class BaseIndicesRequestBuilder<RefreshRequest,RefreshResponse>