org.elasticsearch.client.action.admin.indices.refresh
Class RefreshRequestBuilder
java.lang.Object
org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<RefreshRequest,RefreshResponse>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefreshRequestBuilder
public RefreshRequestBuilder(IndicesAdminClient indicesClient)
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>