public class Optimizations extends Object
| Constructor and Description |
|---|
Optimizations() |
| Modifier and Type | Method and Description |
|---|---|
static Optimization |
batching()
Creates optimization that combines independent requests to same bucket into batches in order to reduce request count to remote storage.
|
static Optimization |
delaying(DelayParameters delayParameters)
Creates optimization that can serve requests locally without synchronization with external storage until thresholds are not violated.
|
static Optimization |
predicting(DelayParameters delayParameters)
Has the same semantic as
predicting(DelayParameters, PredictionParameters) but uses default PredictionParameters. |
static Optimization |
predicting(DelayParameters delayParameters,
PredictionParameters predictionParameters)
Creates optimization that can serve requests locally without synchronization with external storage until thresholds are not violated,
and additionally tries to predict aggregated consumption rate in whole cluster in order to reduce the risk of overconsumption that caused by
DelayOptimization. |
public static Optimization batching()
BatchingOptimizationBatchingOptimizationpublic static Optimization delaying(DelayParameters delayParameters)
delayParameters - thresholds that control whether or not request can be served locally without synchronization with external storageDelayOptimizationDelayOptimizationpublic static Optimization predicting(DelayParameters delayParameters, PredictionParameters predictionParameters)
DelayOptimization.delayParameters - thresholds that control whether or not request can be served locally without synchronization with external storagepredictionParameters - parameters that control the quality of prediction of distributed consumption ratePredictiveOptimizationPredictiveOptimization,
PredictionParameters,
DelayParameterspublic static Optimization predicting(DelayParameters delayParameters)
predicting(DelayParameters, PredictionParameters) but uses default PredictionParameters.delayParameters - thresholds that control whether or not request can be served locally without synchronization with external storagePredictiveOptimizationPredictiveOptimization,
PredictionParametersCopyright © 2022. All rights reserved.