public abstract static class BulkWriterOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract BulkWriterOptions |
autoBuild() |
BulkWriterOptions |
build() |
abstract BulkWriterOptions.Builder |
setExecutor(ScheduledExecutorService executor)
Set the executor that the BulkWriter instance schedules operations on.
|
BulkWriterOptions.Builder |
setInitialOpsPerSecond(int initialOpsPerSecond)
Set the initial maximum number of operations per second allowed by the throttler.
|
BulkWriterOptions.Builder |
setMaxOpsPerSecond(int maxOpsPerSecond)
Set the maximum number of operations per second allowed by the throttler.
|
abstract BulkWriterOptions.Builder |
setThrottlingEnabled(boolean enabled)
Sets whether throttling should be enabled.
|
public abstract BulkWriterOptions.Builder setThrottlingEnabled(boolean enabled)
enabled
- Whether throttling should be enabled.public BulkWriterOptions.Builder setInitialOpsPerSecond(int initialOpsPerSecond)
initialOpsPerSecond
- The initial maximum number of operations per second allowed by the
throttler.public BulkWriterOptions.Builder setMaxOpsPerSecond(int maxOpsPerSecond)
maxOpsPerSecond
- 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.public abstract BulkWriterOptions.Builder setExecutor(@Nullable ScheduledExecutorService executor)
executor
- The executor to schedule BulkWriter operations on.public abstract BulkWriterOptions autoBuild()
@Nonnull public BulkWriterOptions build()
Copyright © 2023 Google LLC. All rights reserved.