BatchingIndexingServiceImpl.Builder

public static final class BatchingIndexingServiceImpl.Builder extends Object

Builder for creating an instance of BatchingIndexingServiceImpl

Public Constructor Summary

Public Method Summary

BatchingIndexingServiceImpl
build()
Builds an instance of BatchingIndexingServiceImpl
BatchingIndexingServiceImpl.Builder
setBatchPolicy(BatchPolicy batchPolicy)
Sets BatchPolicy to be used for batching requests
BatchingIndexingServiceImpl.Builder
setCredential(GoogleCredential credential)
Sets GoogleCredential to be used for batching requests
BatchingIndexingServiceImpl.Builder
setExecutorFactory(BatchRequestService.ExecutorFactory executorFactory)
Sets BatchRequestService.ExecutorFactory to be used for creating instances of ExecutorService used by batching service
BatchingIndexingServiceImpl.Builder
setRetryPolicy(RetryPolicy retryPolicy)
Sets RetryPolicy to be used for batching requests
BatchingIndexingServiceImpl.Builder
setService(CloudSearch service)
Sets CloudSearch service client to be used for creating batch requests

Inherited Method Summary

Public Constructors

public BatchingIndexingServiceImpl.Builder ()

Public Methods

public BatchingIndexingServiceImpl build ()

Builds an instance of BatchingIndexingServiceImpl

Returns

public BatchingIndexingServiceImpl.Builder setBatchPolicy (BatchPolicy batchPolicy)

Sets BatchPolicy to be used for batching requests

Parameters
batchPolicy to be used for batching requests
Returns
  • this builder instance

public BatchingIndexingServiceImpl.Builder setCredential (GoogleCredential credential)

Sets GoogleCredential to be used for batching requests

Parameters
credential to be used for batching requests
Returns
  • this builder instance

public BatchingIndexingServiceImpl.Builder setExecutorFactory (BatchRequestService.ExecutorFactory executorFactory)

Sets BatchRequestService.ExecutorFactory to be used for creating instances of ExecutorService used by batching service

Parameters
executorFactory to be used for creating instances of ExecutorService
Returns
  • this builder instance

public BatchingIndexingServiceImpl.Builder setRetryPolicy (RetryPolicy retryPolicy)

Sets RetryPolicy to be used for batching requests

Parameters
retryPolicy to be used for batching requests
Returns
  • this builder instance

public BatchingIndexingServiceImpl.Builder setService (CloudSearch service)

Sets CloudSearch service client to be used for creating batch requests

Parameters
service CloudSearch service client to be used for creating batch requests
Returns
  • this builder instance