Uses of Interface
io.github.bucket4j.TimeMeter
Packages that use TimeMeter
Package
Description
-
Uses of TimeMeter in io.github.bucket4j
Fields in io.github.bucket4j declared as TimeMeterModifier and TypeFieldDescriptionstatic final TimeMeterTimeMeter.SYSTEM_MILLISECONDSThe implementation ofTimeMeterwhich works aroundSystem.currentTimeMillis()static final TimeMeterTimeMeter.SYSTEM_NANOTIMEThe implementation ofTimeMeterwhich works aroundSystem.nanoTime()Method parameters in io.github.bucket4j with type arguments of type TimeMeterModifier and TypeMethodDescriptionstatic IllegalArgumentExceptionBucketExceptions.isNotWallBasedClockUsedInDistributedEnvironment(Class<? extends TimeMeter> clockClass) -
Uses of TimeMeter in io.github.bucket4j.distributed.proxy
Methods in io.github.bucket4j.distributed.proxy that return types with arguments of type TimeMeterModifier and TypeMethodDescriptionAbstractProxyManagerBuilder.getClientSideClock()Returns clock that will be used for time measurement.ClientSideConfig.getClientSideClock()Returns clock that will be used for time measurement.Methods in io.github.bucket4j.distributed.proxy with parameters of type TimeMeterModifier and TypeMethodDescriptionstatic TimeoutTimeout.boundedTimeout(TimeMeter clientClock, long requestTimeoutNanos) AbstractProxyManagerBuilder.clientClock(TimeMeter clientClock) ConfiguresclientClock.ClientSideConfig.withClientClock(TimeMeter clientClock) Returns new instance ofClientSideConfigwith configuredclientClock.Constructor parameters in io.github.bucket4j.distributed.proxy with type arguments of type TimeMeterModifierConstructorDescriptionprotectedClientSideConfig(Version backwardCompatibilityVersion, Optional<TimeMeter> clientSideClock, ExecutionStrategy executionStrategy, Optional<Long> requestTimeoutNanos, Optional<ExpirationAfterWriteStrategy> expirationStrategy, BucketListener defaultListener, RecoveryStrategy defaultRecoveryStrategy) -
Uses of TimeMeter in io.github.bucket4j.distributed.proxy.optimization.delay
Constructors in io.github.bucket4j.distributed.proxy.optimization.delay with parameters of type TimeMeterModifierConstructorDescriptionDelayOptimization(DelayParameters delayParameters, OptimizationListener listener, TimeMeter timeMeter) -
Uses of TimeMeter in io.github.bucket4j.distributed.proxy.optimization.manual
Constructors in io.github.bucket4j.distributed.proxy.optimization.manual with parameters of type TimeMeterModifierConstructorDescriptionManuallySyncingOptimization(OptimizationListener listener, TimeMeter timeMeter) -
Uses of TimeMeter in io.github.bucket4j.distributed.proxy.optimization.predictive
Constructors in io.github.bucket4j.distributed.proxy.optimization.predictive with parameters of type TimeMeterModifierConstructorDescriptionPredictiveOptimization(PredictionParameters predictionParameters, DelayParameters delayParameters, OptimizationListener listener, TimeMeter timeMeter) -
Uses of TimeMeter in io.github.bucket4j.distributed.proxy.optimization.skiponzero
Constructors in io.github.bucket4j.distributed.proxy.optimization.skiponzero with parameters of type TimeMeterModifierConstructorDescriptionSkipSyncOnZeroOptimization(OptimizationListener listener, TimeMeter timeMeter) -
Uses of TimeMeter in io.github.bucket4j.local
Methods in io.github.bucket4j.local that return TimeMeterModifier and TypeMethodDescriptionLocalBucket.getTimeMeter()Returns the clock that is used by this bucketLockFreeBucket.getTimeMeter()SynchronizedBucket.getTimeMeter()ThreadUnsafeBucket.getTimeMeter()Methods in io.github.bucket4j.local with parameters of type TimeMeterModifier and TypeMethodDescriptionLocalBucketBuilder.withCustomTimePrecision(TimeMeter customTimeMeter) SpecifiescustomTimeMetertime meter for buckets that will be created by this builder.Constructors in io.github.bucket4j.local with parameters of type TimeMeterModifierConstructorDescriptionLockFreeBucket(BucketConfiguration configuration, MathType mathType, TimeMeter timeMeter, BucketListener listener) SynchronizedBucket(BucketConfiguration configuration, MathType mathType, TimeMeter timeMeter, BucketListener listener) ThreadUnsafeBucket(BucketConfiguration configuration, MathType mathType, TimeMeter timeMeter, BucketListener listener)