BatchingIndexingServiceImpl

public class BatchingIndexingServiceImpl extends AbstractIdleService
implements BatchingIndexingService

Concrete class implementing BatchingIndexingService.

Nested Class Summary

class BatchingIndexingServiceImpl.Builder Builder for creating an instance of BatchingIndexingServiceImpl  

Public Method Summary

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

Inherited Method Summary

Public Methods

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

Adds a delete item request to the batch.

Parameters
deleteItem
Throws
InterruptedException

public static BatchingIndexingService fromConfiguration (CloudSearch service, GoogleCredential credential)

Parameters
service
credential

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

Adds an index item request to the batch.

Parameters
indexItem
Throws
InterruptedException

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

Adds a push item request to the batch.

Parameters
pushItem
Throws
InterruptedException

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

Adds an unreserve queue request to the batch.

Parameters
unreserveItem
Throws
InterruptedException