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

java.lang.Object
  extended by org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder<RefreshRequest,RefreshResponse>
      extended by org.elasticsearch.action.admin.indices.refresh.RefreshRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<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.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
RefreshRequestBuilder(IndicesAdminClient indicesClient)
           
 
Method Summary
protected  void doExecute(ActionListener<RefreshResponse> listener)
           
 RefreshRequestBuilder setIgnoreIndices(IgnoreIndices ignoreIndices)
          Specifies what type of requested indices to ignore.
 RefreshRequestBuilder setIndices(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.action.admin.indices.support.BaseIndicesRequestBuilder
execute, execute, request
 
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(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.


setIgnoreIndices

public RefreshRequestBuilder setIgnoreIndices(IgnoreIndices ignoreIndices)
Specifies what type of requested indices to ignore. For example indices that don't exist.


doExecute

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


Copyright © 2009-2012. All Rights Reserved.