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

java.lang.Object
  extended by org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
      extended by 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

Field Summary
 
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
indices
 
Constructor Summary
RefreshRequest(String... indices)
           
 
Method Summary
 RefreshRequest listenerThreaded(boolean threadedListener)
          Should the listener be called on a separate thread if needed.
 RefreshRequest operationThreading(BroadcastOperationThreading operationThreading)
          Controls the operation threading model.
 void readFrom(StreamInput in)
           
 boolean waitForOperations()
           
 RefreshRequest waitForOperations(boolean waitForOperations)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest
beforeLocalFork, beforeStart, ignoreIndices, ignoreIndices, indices, indices, listenerThreaded, operationThreading, operationThreading, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshRequest

public RefreshRequest(String... indices)
Method Detail

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.