Uses of Interface
io.github.bucket4j.distributed.proxy.optimization.Optimization
Packages that use Optimization
Package
Description
-
Uses of Optimization in io.github.bucket4j.distributed.proxy
Methods in io.github.bucket4j.distributed.proxy with parameters of type OptimizationModifier and TypeMethodDescriptionRemoteAsyncBucketBuilder.withOptimization(Optimization optimization) Configures the optimization strategy that will be applied for buckets that are built by this builder.RemoteAsyncBucketBuilderView.withOptimization(Optimization optimization) RemoteBucketBuilder.withOptimization(Optimization optimization) Configures the optimization strategy that will be applied for buckets that are built by this builder.RemoteBucketBuilderView.withOptimization(Optimization optimization) -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization
Fields in io.github.bucket4j.distributed.proxy.optimization declared as OptimizationMethods in io.github.bucket4j.distributed.proxy.optimization that return OptimizationModifier and TypeMethodDescriptionstatic 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.Optimization.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 OptimizationModifier and TypeClassDescriptionclassOptimization 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 OptimizationModifier and TypeMethodDescriptionBatchingOptimization.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 OptimizationModifier and TypeClassDescriptionclassOptimization 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 -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization.manual
Classes in io.github.bucket4j.distributed.proxy.optimization.manual that implement OptimizationModifier and TypeClassDescriptionclassOptimization that can serve requests locally without synchronization with external storage until explicit call ofOptimizationController.syncImmediately().Methods in io.github.bucket4j.distributed.proxy.optimization.manual that return OptimizationModifier and TypeMethodDescriptionManuallySyncingOptimization.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 OptimizationModifier and TypeClassDescriptionclassOptimization 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 OptimizationModifier and TypeMethodDescriptionPredictiveOptimization.withListener(OptimizationListener listener) -
Uses of Optimization in io.github.bucket4j.distributed.proxy.optimization.skiponzero
Classes in io.github.bucket4j.distributed.proxy.optimization.skiponzero that implement OptimizationModifier and TypeClassDescriptionclassOptimization that can serve requests locally without synchronization with external storage when it detects that there is no tokens in remote storage, in such case synchronization with storage is being postponed to proposed refill of first token.Methods in io.github.bucket4j.distributed.proxy.optimization.skiponzero that return OptimizationModifier and TypeMethodDescriptionSkipSyncOnZeroOptimization.withListener(OptimizationListener listener)