Class BulkWriterOptions (3.12.1)

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
TypeDescription
BulkWriterOptions.Builder

Constructors

BulkWriterOptions()

public BulkWriterOptions()

Methods

getExecutor()

public abstract ScheduledExecutorService getExecutor()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Double

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

getThrottlingEnabled()

public abstract boolean getThrottlingEnabled()

Return whether throttling is enabled.

Returns
TypeDescription
boolean

Whether throttling is enabled.

toBuilder()

public abstract BulkWriterOptions.Builder toBuilder()
Returns
TypeDescription
BulkWriterOptions.Builder