Package com.google.cloud.firestore
Class BulkWriterOptions
java.lang.Object
com.google.cloud.firestore.BulkWriterOptions
Options used to configure request throttling in BulkWriter.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkWriterOptions.Builderbuilder()abstract ScheduledExecutorServiceabstract DoubleReturns the initial maximum number of operations per second allowed by the throttler.abstract DoubleReturns the maximum number of operations per second allowed by the throttler.abstract booleanReturn whether throttling is enabled.abstract BulkWriterOptions.Builder
-
Constructor Details
-
BulkWriterOptions
public BulkWriterOptions()
-
-
Method Details
-
getThrottlingEnabled
public abstract boolean getThrottlingEnabled()Return whether throttling is enabled.- Returns:
- Whether throttling is enabled.
-
getInitialOpsPerSecond
Returns the initial maximum number of operations per second allowed by the throttler.- Returns:
- The initial maximum number of operations per second allowed by the throttler.
-
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:
- The maximum number of operations per second allowed by the throttler.
-
getExecutor
- Returns:
- The
ScheduledExecutorServicethat BulkWriter uses to schedule all operations. If null, the default executor will be used.
-
builder
-
toBuilder
-