Class BulkWriterOptions (3.30.0)

public abstract class BulkWriterOptions

Options used to configure request throttling in BulkWriter.

Inheritance

java.lang.Object > BulkWriterOptions

Static Methods

builder()

public static BulkWriterOptions.Builder builder()
Returns
Type Description
BulkWriterOptions.Builder

Constructors

BulkWriterOptions()

public BulkWriterOptions()

Methods

getExecutor()

public abstract ScheduledExecutorService getExecutor()
Returns
Type Description
ScheduledExecutorService

The ScheduledExecutorService that BulkWriter uses to schedule all operations. If null, the default executor will be used.

getInitialOpsPerSecond()

public abstract Double getInitialOpsPerSecond()

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

Returns
Type Description
Double

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

getMaxOpsPerSecond()

public abstract Double getMaxOpsPerSecond()

Returns 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
Type Description
Double

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

getThrottlingEnabled()

public abstract boolean getThrottlingEnabled()

Return whether throttling is enabled.

Returns
Type Description
boolean

Whether throttling is enabled.

toBuilder()

public abstract BulkWriterOptions.Builder toBuilder()
Returns
Type Description
BulkWriterOptions.Builder