BatchPolicy.Builder

public static final class BatchPolicy.Builder extends Object

Public Constructor Summary

Public Method Summary

BatchPolicy
build()
BatchPolicy.Builder
setBatchConnectTimeoutSeconds(int batchConnectTimeout)
BatchPolicy.Builder
setBatchReadTimeoutSeconds(int batchReadTimeout)
BatchPolicy.Builder
setFlushOnShutdown(boolean flushOnShutdown)
BatchPolicy.Builder
setMaxActiveBatches(int maxActiveBatches)
BatchPolicy.Builder
setMaxBatchDelay(int maxBatchDelay, TimeUnit maxBatchDelayUnit)
BatchPolicy.Builder
setMaxBatchSize(int maxBatchSize)
BatchPolicy.Builder
setQueueLength(int queueLength)

Inherited Method Summary

Public Constructors

public BatchPolicy.Builder ()

Public Methods

public BatchPolicy build ()

public BatchPolicy.Builder setBatchConnectTimeoutSeconds (int batchConnectTimeout)

Parameters
batchConnectTimeout

public BatchPolicy.Builder setBatchReadTimeoutSeconds (int batchReadTimeout)

Parameters
batchReadTimeout

public BatchPolicy.Builder setFlushOnShutdown (boolean flushOnShutdown)

Parameters
flushOnShutdown

public BatchPolicy.Builder setMaxActiveBatches (int maxActiveBatches)

Parameters
maxActiveBatches

public BatchPolicy.Builder setMaxBatchDelay (int maxBatchDelay, TimeUnit maxBatchDelayUnit)

Parameters
maxBatchDelay
maxBatchDelayUnit

public BatchPolicy.Builder setMaxBatchSize (int maxBatchSize)

Parameters
maxBatchSize

public BatchPolicy.Builder setQueueLength (int queueLength)

Parameters
queueLength

Send feedback about...

Cloud Search
Cloud Search