Class BulkWriterOptions.Builder (3.2.0)

public abstract static class BulkWriterOptions.Builder

Inheritance

java.lang.Object > BulkWriterOptions.Builder

Constructors

Builder()

public Builder()

Methods

autoBuild()

public abstract BulkWriterOptions autoBuild()
Returns
TypeDescription
BulkWriterOptions

build()

public BulkWriterOptions build()
Returns
TypeDescription
BulkWriterOptions

setExecutor(ScheduledExecutorService executor)

public abstract BulkWriterOptions.Builder setExecutor(ScheduledExecutorService executor)

Set the executor that the BulkWriter instance schedules operations on.

Parameter
NameDescription
executorScheduledExecutorService

The executor to schedule BulkWriter operations on.

Returns
TypeDescription
BulkWriterOptions.Builder

setInitialOpsPerSecond(int initialOpsPerSecond)

public BulkWriterOptions.Builder setInitialOpsPerSecond(int initialOpsPerSecond)

Set the initial maximum number of operations per second allowed by the throttler.

Parameter
NameDescription
initialOpsPerSecondint

The initial maximum number of operations per second allowed by the throttler.

Returns
TypeDescription
BulkWriterOptions.Builder

setMaxOpsPerSecond(int maxOpsPerSecond)

public BulkWriterOptions.Builder setMaxOpsPerSecond(int maxOpsPerSecond)

Set the maximum number of operations per second allowed by the throttler.

Parameter
NameDescription
maxOpsPerSecondint

The maximum number of operations per second allowed by the throttler. The throttler's allowed operations per second does not ramp up past the specified operations per second.

Returns
TypeDescription
BulkWriterOptions.Builder

setThrottlingEnabled(boolean enabled)

public abstract BulkWriterOptions.Builder setThrottlingEnabled(boolean enabled)

Sets whether throttling should be enabled. By default, throttling is enabled.

Parameter
NameDescription
enabledboolean

Whether throttling should be enabled.

Returns
TypeDescription
BulkWriterOptions.Builder