org.elasticsearch.action.admin.indices.refresh
Class RefreshRequest
java.lang.Object
org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
org.elasticsearch.action.admin.indices.refresh.RefreshRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class RefreshRequest
- extends BroadcastOperationRequest
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.
- See Also:
Requests.refreshRequest(String...)
,
IndicesAdminClient.refresh(RefreshRequest)
,
RefreshResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefreshRequest
public RefreshRequest(String... indices)
listenerThreaded
public RefreshRequest listenerThreaded(boolean threadedListener)
- Should the listener be called on a separate thread if needed.
- Specified by:
listenerThreaded
in interface ActionRequest
- Overrides:
listenerThreaded
in class BroadcastOperationRequest
operationThreading
public RefreshRequest operationThreading(BroadcastOperationThreading operationThreading)
- Controls the operation threading model.
- Overrides:
operationThreading
in class BroadcastOperationRequest
waitForOperations
public boolean waitForOperations()
waitForOperations
public RefreshRequest waitForOperations(boolean waitForOperations)
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class BroadcastOperationRequest
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class BroadcastOperationRequest
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.