Uses of Interface
io.github.bucket4j.distributed.proxy.optimization.Optimization
-
-
Uses of Optimization in io.github.bucket4j.distributed.proxy
Methods in io.github.bucket4j.distributed.proxy with parameters of type Optimization Modifier and Type Method Description RemoteAsyncBucketBuilder<K>RemoteAsyncBucketBuilder. withOptimization(Optimization optimization)Configures the optimization strategy that will be applied for buckets that are built by this builder.RemoteBucketBuilder<K>RemoteBucketBuilder. withOptimization(Optimization optimization)Configures the optimization strategy that will be applied for buckets that are built by this builder. -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization
Fields in io.github.bucket4j.distributed.proxy.optimization declared as Optimization Modifier and Type Field Description static OptimizationOptimization. NONE_OPTIMIZEDMethods in io.github.bucket4j.distributed.proxy.optimization that return Optimization Modifier and Type Method Description static OptimizationOptimizations. batching()Creates optimization that combines independent requests to same bucket into batches in order to reduce request count to remote storage.static OptimizationOptimizations. delaying(DelayParameters delayParameters)Creates optimization that can serve requests locally without synchronization with external storage until thresholds are not violated.static OptimizationOptimizations. predicting(DelayParameters delayParameters)Has the same semantic asOptimizations.predicting(DelayParameters, PredictionParameters)but uses defaultPredictionParameters.static OptimizationOptimizations. 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 byDelayOptimization.OptimizationOptimization. withListener(OptimizationListener listener)Specifies the listener for optimization events -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization.batch
Classes in io.github.bucket4j.distributed.proxy.optimization.batch that implement Optimization Modifier and Type Class Description classBatchingOptimizationOptimization that combines independent requests to same bucket into batches in order to reduce request count to remote storage.Methods in io.github.bucket4j.distributed.proxy.optimization.batch that return Optimization Modifier and Type Method Description OptimizationBatchingOptimization. withListener(OptimizationListener listener) -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization.delay
Classes in io.github.bucket4j.distributed.proxy.optimization.delay that implement Optimization Modifier and Type Class Description classDelayOptimizationOptimization that can serve requests locally without synchronization with external storage until thresholds are not violated.Methods in io.github.bucket4j.distributed.proxy.optimization.delay that return Optimization Modifier and Type Method Description OptimizationDelayOptimization. withListener(OptimizationListener listener) -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization.predictive
Classes in io.github.bucket4j.distributed.proxy.optimization.predictive that implement Optimization Modifier and Type Class Description classPredictiveOptimizationOptimization that can serve requests locally without synchronization with external storage until thresholds are not violated.Methods in io.github.bucket4j.distributed.proxy.optimization.predictive that return Optimization Modifier and Type Method Description OptimizationPredictiveOptimization. withListener(OptimizationListener listener)
-