CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations
factory methods allowing to provide
an operation specific context
Encapsulates options for executing a bulk. This is immutable once
CosmosAsyncContainer.processBulkOperations(Flux, BulkProcessingOptions)
is called, changing it will have
no affect.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public final class BulkProcessingOptions<TContext> extends Object
Constructor and Description |
---|
BulkProcessingOptions()
Deprecated.
forRemoval = true, since = "4.18"
This class is not necessary anymore and will be removed. Please use one of the following overloads instead
-
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations factory methods allowing to provide
an operation specific context
Constructor |
BulkProcessingOptions(TContext batchContext)
Deprecated.
forRemoval = true, since = "4.18"
This class is not necessary anymore and will be removed. Please use one of the following overloads instead
-
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations factory methods allowing to provide
an operation specific context
Constructor |
BulkProcessingOptions(TContext batchContext,
BulkProcessingThresholds<TContext> thresholds)
Deprecated.
forRemoval = true, since = "4.18"
This class is not necessary anymore and will be removed. Please use one of the following overloads instead
-
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations factory methods allowing to provide
an operation specific context
Constructor |
Modifier and Type | Method and Description |
---|---|
TContext |
getBatchContext()
Deprecated.
Returns batch context
|
int |
getMaxMicroBatchConcurrency()
Deprecated.
Returns max micro batch concurrency
|
Duration |
getMaxMicroBatchInterval()
Deprecated.
Returns max micro batch interval
|
int |
getMaxMicroBatchSize()
Deprecated.
Returns micro batch size
|
double |
getMaxTargetedMicroBatchRetryRate()
Deprecated.
Returns max targeted micro batch retry rate
|
double |
getMinTargetedMicroBatchRetryRate()
Deprecated.
Returns min targeted micro batch retry rate
|
BulkProcessingThresholds<TContext> |
getThresholds()
Deprecated.
Returns thresholds
|
BulkProcessingOptions<TContext> |
setMaxMicroBatchConcurrency(int maxMicroBatchConcurrency)
Deprecated.
The maximum concurrency for executing requests for a partition key range.
|
BulkProcessingOptions<TContext> |
setMaxMicroBatchInterval(Duration maxMicroBatchInterval)
Deprecated.
The flush interval for bulk operations.
|
BulkProcessingOptions<TContext> |
setMaxMicroBatchSize(int maxMicroBatchSize)
Deprecated.
The maximum batching size for bulk operations.
|
BulkProcessingOptions<TContext> |
setTargetedMicroBatchRetryRate(double minRetryRate,
double maxRetryRate)
Deprecated.
The acceptable retry rate bandwidth.
|
@Beta(value=V4_17_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public BulkProcessingOptions(TContext batchContext, BulkProcessingThresholds<TContext> thresholds)
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations
factory methods allowing to provide
an operation specific context
ConstructorbatchContext
- batch contextthresholds
- thresholds@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public BulkProcessingOptions(TContext batchContext)
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations
factory methods allowing to provide
an operation specific context
ConstructorbatchContext
- batch context@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public BulkProcessingOptions()
CosmosAsyncContainer.processBulkOperations(Flux)
- CosmosAsyncContainer.processBulkOperations(Flux, BulkExecutionOptions)
- CosmosContainer.processBulkOperations(Iterable)
- CosmosContainer.processBulkOperations(Iterable, BulkExecutionOptions)
and to pass in a custom context use one of the BulkOperations
factory methods allowing to provide
an operation specific context
Constructor@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getMaxMicroBatchSize()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkProcessingOptions<TContext> setMaxMicroBatchSize(int maxMicroBatchSize)
maxMicroBatchSize
- batching size.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public int getMaxMicroBatchConcurrency()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkProcessingOptions<TContext> setMaxMicroBatchConcurrency(int maxMicroBatchConcurrency)
maxMicroBatchConcurrency
- maximum concurrency.@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public Duration getMaxMicroBatchInterval()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkProcessingOptions<TContext> setMaxMicroBatchInterval(Duration maxMicroBatchInterval)
maxMicroBatchInterval
- duration after which operations will be flushed to form a new batch to be executed.@Beta(value=V4_17_0, warningText="Preview API - subject to change in non-backwards compatible way") public double getMaxTargetedMicroBatchRetryRate()
@Beta(value=V4_17_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkProcessingOptions<TContext> setTargetedMicroBatchRetryRate(double minRetryRate, double maxRetryRate)
minRetryRate
- minimum targeted retry rate of batch requests. If the retry rate is
lower than this threshold the micro batch size will be dynamically increased over timemaxRetryRate
- maximum retry rate of batch requests that is treated as acceptable. If the retry rate is
higher than this threshold the micro batch size will be dynamically reduced over time@Beta(value=V4_17_0, warningText="Preview API - subject to change in non-backwards compatible way") public double getMinTargetedMicroBatchRetryRate()
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") public TContext getBatchContext()
@Beta(value=V4_17_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkProcessingThresholds<TContext> getThresholds()
Copyright © 2021 Microsoft Corporation. All rights reserved.