Package com.google.cloud.firestore
Class BulkWriterOptions.Builder
java.lang.Object
com.google.cloud.firestore.BulkWriterOptions.Builder
- Enclosing class:
- BulkWriterOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BulkWriterOptionsbuild()abstract BulkWriterOptions.BuildersetExecutor(ScheduledExecutorService executor) Set the executor that the BulkWriter instance schedules operations on.setInitialOpsPerSecond(int initialOpsPerSecond) Set the initial maximum number of operations per second allowed by the throttler.setMaxOpsPerSecond(int maxOpsPerSecond) Set the maximum number of operations per second allowed by the throttler.abstract BulkWriterOptions.BuildersetThrottlingEnabled(boolean enabled) Sets whether throttling should be enabled.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setThrottlingEnabled
Sets whether throttling should be enabled. By default, throttling is enabled.- Parameters:
enabled- Whether throttling should be enabled.
-
setInitialOpsPerSecond
Set the initial maximum number of operations per second allowed by the throttler.- Parameters:
initialOpsPerSecond- The initial maximum number of operations per second allowed by the throttler.
-
setMaxOpsPerSecond
Set the maximum number of operations per second allowed by the throttler.- Parameters:
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.
-
setExecutor
Set the executor that the BulkWriter instance schedules operations on.- Parameters:
executor- The executor to schedule BulkWriter operations on.
-
autoBuild
-
build
-