@BetaApi public abstract class BulkWriterOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BulkWriterOptions.Builder |
Constructor and Description |
---|
BulkWriterOptions() |
Modifier and Type | Method and Description |
---|---|
static BulkWriterOptions.Builder |
builder() |
abstract ScheduledExecutorService |
getExecutor() |
abstract Double |
getInitialOpsPerSecond()
Returns the initial maximum number of operations per second allowed by the throttler.
|
abstract Double |
getMaxOpsPerSecond()
Returns the maximum number of operations per second allowed by the throttler.
|
abstract boolean |
getThrottlingEnabled()
Return whether throttling is enabled.
|
abstract BulkWriterOptions.Builder |
toBuilder() |
public abstract boolean getThrottlingEnabled()
@Nullable public abstract Double getInitialOpsPerSecond()
@Nullable public abstract Double getMaxOpsPerSecond()
The throttler's allowed operations per second does not ramp up past the specified operations per second.
@Nullable public abstract ScheduledExecutorService getExecutor()
ScheduledExecutorService
that BulkWriter uses to schedule all operations.
If null, the default executor will be used.public static BulkWriterOptions.Builder builder()
public abstract BulkWriterOptions.Builder toBuilder()
Copyright © 2023 Google LLC. All rights reserved.