BatchingIndexingService

public interface BatchingIndexingService implements Service
Known Indirect Subclasses

Indexing Service for batching multiple API requests.

This service provides the ability to group a set of API requests together in order to send them to Cloud Search in a single submission. The submission triggers are configurable using a BatchPolicy object. This is commonly used by IndexingServiceImpl for API requests that return empty response objects, such as push and delete.

Batched API operations are executed asynchronously. The caller can use the get() method to obtain the result of a batched request. The caller can also use addListener(Runnable, Executor) or addCallback(ListenableFuture, FutureCallback) to register callback methods to retrieve results from the batched operation.

Public Method Summary

abstract ListenableFuture<Operation>
deleteItem(CloudSearch.Indexing.Datasources.Items.Delete deleteItem)
Adds a delete item request to the batch.
abstract ListenableFuture<Operation>
indexItem(CloudSearch.Indexing.Datasources.Items.Index indexItem)
Adds an index item request to the batch.
abstract ListenableFuture<Item>
pushItem(CloudSearch.Indexing.Datasources.Items.Push pushItem)
Adds a push item request to the batch.
abstract ListenableFuture<Operation>
unreserveItem(CloudSearch.Indexing.Datasources.Items.Unreserve unreserveItem)
Adds an unreserve queue request to the batch.

Inherited Method Summary

Public Methods

public abstract ListenableFuture<Operation> deleteItem (CloudSearch.Indexing.Datasources.Items.Delete deleteItem)

Adds a delete item request to the batch.

Parameters
deleteItem
Throws
InterruptedException

public abstract ListenableFuture<Operation> indexItem (CloudSearch.Indexing.Datasources.Items.Index indexItem)

Adds an index item request to the batch.

Parameters
indexItem
Throws
InterruptedException

public abstract ListenableFuture<Item> pushItem (CloudSearch.Indexing.Datasources.Items.Push pushItem)

Adds a push item request to the batch.

Parameters
pushItem
Throws
InterruptedException

public abstract ListenableFuture<Operation> unreserveItem (CloudSearch.Indexing.Datasources.Items.Unreserve unreserveItem)

Adds an unreserve queue request to the batch.

Parameters
unreserveItem
Throws
InterruptedException