Skip navigation links
A B C D E G I J L N P R S T U V W 

A

AbstractBucket - Class in io.github.bucket4j
 
AbstractBucket(BucketConfiguration) - Constructor for class io.github.bucket4j.AbstractBucket
 
AbstractBucketBuilder<T extends AbstractBucketBuilder> - Class in io.github.bucket4j
A builder for buckets.
AbstractBucketBuilder() - Constructor for class io.github.bucket4j.AbstractBucketBuilder
 
addLimit(Bandwidth) - Method in class io.github.bucket4j.AbstractBucketBuilder
Adds limited bandwidth for all buckets which will be constructed by this builder instance.
addLimit(long, Bandwidth) - Method in class io.github.bucket4j.AbstractBucketBuilder
Adds limited bandwidth for all buckets which will be constructed by this builder instance.
addTokens(long) - Method in class io.github.bucket4j.AbstractBucket
 
addTokens(long) - Method in interface io.github.bucket4j.Bucket
Add tokensToAdd to each bandwidth of bucket.
addTokens(Bandwidth[], long) - Method in class io.github.bucket4j.BucketState
 
AddTokensCommand - Class in io.github.bucket4j.grid
 
AddTokensCommand(long) - Constructor for class io.github.bucket4j.grid.AddTokensCommand
 
addTokensImpl(long) - Method in class io.github.bucket4j.AbstractBucket
 
addTokensImpl(long) - Method in class io.github.bucket4j.grid.GridBucket
 
addTokensImpl(long) - Method in class io.github.bucket4j.local.LockFreeBucket
 
addTokensImpl(long) - Method in class io.github.bucket4j.local.SynchronizedBucket
 
addTokensImpl(long) - Method in class io.github.bucket4j.local.UnsafeBucket
 

B

Bandwidth - Class in io.github.bucket4j
Anatomy of bandwidth:
bandwidths - Variable in class io.github.bucket4j.AbstractBucket
 
Bucket - Interface in io.github.bucket4j
Performs rate limiting using algorithm based on top of ideas of Token Bucket.
Bucket4j - Class in io.github.bucket4j
This is entry point for functionality provided bucket4j library.
Bucket4j() - Constructor for class io.github.bucket4j.Bucket4j
 
BucketConfiguration - Class in io.github.bucket4j
 
BucketConfiguration(List<BandwidthDefinition>, TimeMeter) - Constructor for class io.github.bucket4j.BucketConfiguration
 
BucketExceptions - Class in io.github.bucket4j
 
BucketExceptions() - Constructor for class io.github.bucket4j.BucketExceptions
 
bucketNotFound() - Static method in class io.github.bucket4j.grid.CommandResult
 
BucketNotFoundException - Exception in io.github.bucket4j.grid
Exception which thrown each time when GridBucket found that bucket state has been lost, and GridBucket is unable to repair bucket state or recovery strategy is RecoveryStrategy.THROW_BUCKET_NOT_FOUND_EXCEPTION.
BucketNotFoundException(Serializable) - Constructor for exception io.github.bucket4j.grid.BucketNotFoundException
 
BucketState - Class in io.github.bucket4j
 
BucketState(BucketConfiguration) - Constructor for class io.github.bucket4j.BucketState
 
build(Cache<K, GridBucketState>, K) - Method in class io.github.bucket4j.grid.jcache.JCacheBucketBuilder
Constructs an instance of GridBucket which responsible to limit rate inside Apache Ignite(GridGain) cluster.
build() - Method in class io.github.bucket4j.local.LocalBucketBuilder
Constructs the bucket using SynchronizationStrategy.LOCK_FREE synchronization strategy.
build(SynchronizationStrategy) - Method in class io.github.bucket4j.local.LocalBucketBuilder
Constructs the new instance of local bucket which concrete type depends on synchronizationStrategy
builder() - Static method in class io.github.bucket4j.Bucket4j
Creates the new builder of in-memory buckets.

C

classic(long, Refill) - Static method in class io.github.bucket4j.Bandwidth
Specifies limitation in classic interpretation of token-bucket algorithm.
clone() - Method in class io.github.bucket4j.BucketState
 
CommandResult<T> - Class in io.github.bucket4j.grid
 
CommandResult(T, boolean) - Constructor for class io.github.bucket4j.grid.CommandResult
 
configuration - Variable in class io.github.bucket4j.AbstractBucket
 
consume(long) - Method in class io.github.bucket4j.AbstractBucket
 
consume(long, long) - Method in class io.github.bucket4j.AbstractBucket
 
consume(long, long) - Method in interface io.github.bucket4j.Bucket
Consumes a specified number of tokens from the bucket.
consume(long) - Method in interface io.github.bucket4j.Bucket
Consumes numTokens from the bucket.
consume(Bandwidth[], long) - Method in class io.github.bucket4j.BucketState
 
ConsumeAsMuchAsPossibleCommand - Class in io.github.bucket4j.grid
 
ConsumeAsMuchAsPossibleCommand(long) - Constructor for class io.github.bucket4j.grid.ConsumeAsMuchAsPossibleCommand
 
consumeAsMuchAsPossibleImpl(long) - Method in class io.github.bucket4j.AbstractBucket
 
consumeAsMuchAsPossibleImpl(long) - Method in class io.github.bucket4j.grid.GridBucket
 
consumeAsMuchAsPossibleImpl(long) - Method in class io.github.bucket4j.local.LockFreeBucket
 
consumeAsMuchAsPossibleImpl(long) - Method in class io.github.bucket4j.local.SynchronizedBucket
 
consumeAsMuchAsPossibleImpl(long) - Method in class io.github.bucket4j.local.UnsafeBucket
 
consumeOrAwaitImpl(long, long, boolean) - Method in class io.github.bucket4j.AbstractBucket
 
consumeOrAwaitImpl(long, long, boolean) - Method in class io.github.bucket4j.grid.GridBucket
 
consumeOrAwaitImpl(long, long, boolean) - Method in class io.github.bucket4j.local.LockFreeBucket
 
consumeOrAwaitImpl(long, long, boolean) - Method in class io.github.bucket4j.local.SynchronizedBucket
 
consumeOrAwaitImpl(long, long, boolean) - Method in class io.github.bucket4j.local.UnsafeBucket
 
consumeUninterruptibly(long) - Method in class io.github.bucket4j.AbstractBucket
 
consumeUninterruptibly(long, long) - Method in class io.github.bucket4j.AbstractBucket
 
consumeUninterruptibly(long, long) - Method in interface io.github.bucket4j.Bucket
Consumes a specified number of tokens from the bucket.
consumeUninterruptibly(long) - Method in interface io.github.bucket4j.Bucket
Consumes numTokens from the bucket.
copyStateFrom(BucketState) - Method in class io.github.bucket4j.BucketState
 
createConfiguration() - Method in class io.github.bucket4j.AbstractBucketBuilder
 
createInitialState(BucketConfiguration) - Static method in class io.github.bucket4j.BucketState
 
createSnapshot() - Method in interface io.github.bucket4j.Bucket
Creates the copy of internal state.
createSnapshot() - Method in class io.github.bucket4j.grid.GridBucket
 
createSnapshot() - Method in class io.github.bucket4j.local.LockFreeBucket
 
createSnapshot() - Method in class io.github.bucket4j.local.SynchronizedBucket
 
createSnapshot() - Method in class io.github.bucket4j.local.UnsafeBucket
 
CreateSnapshotCommand - Class in io.github.bucket4j.grid
 
CreateSnapshotCommand() - Constructor for class io.github.bucket4j.grid.CreateSnapshotCommand
 
currentTimeNanos() - Method in interface io.github.bucket4j.TimeMeter
Returns current time in nanosecond precision, but not necessarily nanosecond resolution.

D

delayNanosAfterWillBePossibleToConsume(Bandwidth[], long) - Method in class io.github.bucket4j.BucketState
 

E

execute(GridBucketState) - Method in class io.github.bucket4j.grid.AddTokensCommand
 
execute(GridBucketState) - Method in class io.github.bucket4j.grid.ConsumeAsMuchAsPossibleCommand
 
execute(GridBucketState) - Method in class io.github.bucket4j.grid.CreateSnapshotCommand
 
execute(GridBucketState) - Method in interface io.github.bucket4j.grid.GridCommand
 
execute(GridCommand<T>) - Method in interface io.github.bucket4j.grid.GridProxy
 
execute(GridCommand) - Method in class io.github.bucket4j.grid.jcache.JCacheProxy
 
execute(GridBucketState) - Method in class io.github.bucket4j.grid.ReserveAndCalculateTimeToSleepCommand
 
execute(GridBucketState) - Method in class io.github.bucket4j.grid.TryConsumeCommand
 

G

getAvailableTokens(Bandwidth[]) - Method in class io.github.bucket4j.BucketState
 
getBandwidths() - Method in class io.github.bucket4j.BucketConfiguration
 
getBandwidthsInitialTokens() - Method in class io.github.bucket4j.BucketConfiguration
 
getBucketConfiguration() - Method in class io.github.bucket4j.grid.GridBucketState
 
getBucketId() - Method in exception io.github.bucket4j.grid.BucketNotFoundException
 
getBucketKey() - Method in interface io.github.bucket4j.grid.GridProxy
 
getBucketKey() - Method in class io.github.bucket4j.grid.jcache.JCacheProxy
 
getBucketState() - Method in class io.github.bucket4j.grid.GridBucketState
 
getConfiguration() - Method in class io.github.bucket4j.AbstractBucket
 
getConfiguration() - Method in interface io.github.bucket4j.Bucket
Returns configuration of this bucket.
getData() - Method in class io.github.bucket4j.grid.CommandResult
 
getTimeMeter() - Method in class io.github.bucket4j.BucketConfiguration
 
GridBucket - Class in io.github.bucket4j.grid
 
GridBucket(BucketConfiguration, GridProxy, RecoveryStrategy) - Constructor for class io.github.bucket4j.grid.GridBucket
 
GridBucketState - Class in io.github.bucket4j.grid
 
GridBucketState() - Constructor for class io.github.bucket4j.grid.GridBucketState
 
GridBucketState(BucketConfiguration, BucketState) - Constructor for class io.github.bucket4j.grid.GridBucketState
 
GridCommand<T extends Serializable> - Interface in io.github.bucket4j.grid
 
GridProxy<K extends Serializable> - Interface in io.github.bucket4j.grid
 

I

INITIAL_TOKENS_UNSPECIFIED - Static variable in class io.github.bucket4j.BucketConfiguration
 
io.github.bucket4j - package io.github.bucket4j
 
io.github.bucket4j.grid - package io.github.bucket4j.grid
 
io.github.bucket4j.grid.jcache - package io.github.bucket4j.grid.jcache
 
io.github.bucket4j.local - package io.github.bucket4j.local
 
isBucketNotFound() - Method in class io.github.bucket4j.grid.CommandResult
 
isBucketStateModified() - Method in class io.github.bucket4j.grid.AddTokensCommand
 
isBucketStateModified() - Method in class io.github.bucket4j.grid.ConsumeAsMuchAsPossibleCommand
 
isBucketStateModified() - Method in class io.github.bucket4j.grid.CreateSnapshotCommand
 
isBucketStateModified() - Method in interface io.github.bucket4j.grid.GridCommand
 
isBucketStateModified() - Method in class io.github.bucket4j.grid.ReserveAndCalculateTimeToSleepCommand
 
isBucketStateModified() - Method in class io.github.bucket4j.grid.TryConsumeCommand
 

J

JCacheBucketBuilder - Class in io.github.bucket4j.grid.jcache
A builder for buckets.
JCacheBucketBuilder(RecoveryStrategy) - Constructor for class io.github.bucket4j.grid.jcache.JCacheBucketBuilder
Creates the new instance of JCacheBucketBuilder with configured recovery strategy
jCacheBuilder(RecoveryStrategy) - Static method in class io.github.bucket4j.Bucket4j
Creates the new builder for buckets backed by any JCache API (JSR 107) implementation.
JCacheCommand<K,T extends Serializable> - Class in io.github.bucket4j.grid.jcache
 
JCacheCommand() - Constructor for class io.github.bucket4j.grid.jcache.JCacheCommand
 
JCacheProxy<K extends Serializable> - Class in io.github.bucket4j.grid.jcache
 
JCacheProxy(Cache<K, GridBucketState>, K) - Constructor for class io.github.bucket4j.grid.jcache.JCacheProxy
 

L

LocalBucketBuilder - Class in io.github.bucket4j.local
This builder creates in-memory buckets (LockFreeBucket).
LocalBucketBuilder() - Constructor for class io.github.bucket4j.local.LocalBucketBuilder
 
LockFreeBucket - Class in io.github.bucket4j.local
 
LockFreeBucket(BucketConfiguration) - Constructor for class io.github.bucket4j.local.LockFreeBucket
 

N

nonPositiveCapacity(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nonPositiveInitialTokens(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nonPositiveNanosToWait(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nonPositivePeriod(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nonPositivePeriodTokens(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nonPositiveTokensToConsume(long) - Static method in class io.github.bucket4j.BucketExceptions
 
nullBandwidth() - Static method in class io.github.bucket4j.BucketExceptions
 
nullBandwidthRefill() - Static method in class io.github.bucket4j.BucketExceptions
 
nullPeriod() - Static method in class io.github.bucket4j.BucketExceptions
 
nullTimeMeter() - Static method in class io.github.bucket4j.BucketExceptions
 

P

park(long) - Method in interface io.github.bucket4j.TimeMeter
Park current thread to required duration of nanoseconds.
parkUninterruptibly(long) - Method in interface io.github.bucket4j.TimeMeter
Parks current thread to required duration of nanoseconds ignoring all interrupts, if interrupt was happen then interruption flag will be restored on the current thread.
process(MutableEntry<K, GridBucketState>, Object...) - Method in class io.github.bucket4j.grid.jcache.JCacheCommand
 

R

RecoveryStrategy - Enum in io.github.bucket4j.grid
Specifies the reaction which should be applied in case of previously saved state of bucket has been lost.
Refill - Class in io.github.bucket4j
Specifies the speed of tokens regeneration.
refillAllBandwidth(Bandwidth[], long) - Method in class io.github.bucket4j.BucketState
 
ReserveAndCalculateTimeToSleepCommand - Class in io.github.bucket4j.grid
 
ReserveAndCalculateTimeToSleepCommand(long, long) - Constructor for class io.github.bucket4j.grid.ReserveAndCalculateTimeToSleepCommand
 
restrictionsNotSpecified() - Static method in class io.github.bucket4j.BucketExceptions
 

S

setBucketNotFound(boolean) - Method in class io.github.bucket4j.grid.CommandResult
 
setData(T) - Method in class io.github.bucket4j.grid.CommandResult
 
setInitialState(GridBucketState) - Method in interface io.github.bucket4j.grid.GridProxy
 
setInitialState(GridBucketState) - Method in class io.github.bucket4j.grid.jcache.JCacheProxy
 
simple(long, Duration) - Static method in class io.github.bucket4j.Bandwidth
Specifies simple limitation capacity tokens per period time window.
smooth(long, Duration) - Static method in class io.github.bucket4j.Refill
Creates refill which regenerates the tokens in greedy manner.
success(R) - Static method in class io.github.bucket4j.grid.CommandResult
 
SynchronizationStrategy - Enum in io.github.bucket4j.local
Defines the strategy of synchronization which need to be applied to prevent data-races in multithreading usage scenario.
SynchronizedBucket - Class in io.github.bucket4j.local
 
SynchronizedBucket(BucketConfiguration) - Constructor for class io.github.bucket4j.local.SynchronizedBucket
 
SYSTEM_MILLISECONDS - Static variable in interface io.github.bucket4j.TimeMeter
The implementation of TimeMeter which works around System.currentTimeMillis()
SYSTEM_NANOTIME - Static variable in interface io.github.bucket4j.TimeMeter
The implementation of TimeMeter which works arround System.nanoTime()

T

timeMeter - Variable in class io.github.bucket4j.AbstractBucket
 
TimeMeter - Interface in io.github.bucket4j
An abstraction over time measurement.
toString() - Method in class io.github.bucket4j.AbstractBucketBuilder
 
toString() - Method in class io.github.bucket4j.Bandwidth
 
toString() - Method in class io.github.bucket4j.BucketConfiguration
 
toString() - Method in class io.github.bucket4j.BucketState
 
toString() - Method in class io.github.bucket4j.local.LockFreeBucket
 
toString() - Method in class io.github.bucket4j.local.SynchronizedBucket
 
toString() - Method in class io.github.bucket4j.local.UnsafeBucket
 
toString() - Method in class io.github.bucket4j.Refill
 
tryConsume(long) - Method in class io.github.bucket4j.AbstractBucket
 
tryConsume(long) - Method in interface io.github.bucket4j.Bucket
Tries to consume a specified number of tokens from this bucket.
tryConsumeAsMuchAsPossible(long) - Method in class io.github.bucket4j.AbstractBucket
 
tryConsumeAsMuchAsPossible() - Method in class io.github.bucket4j.AbstractBucket
 
tryConsumeAsMuchAsPossible() - Method in interface io.github.bucket4j.Bucket
Tries to consume as much tokens from this bucket as available at the moment of invocation.
tryConsumeAsMuchAsPossible(long) - Method in interface io.github.bucket4j.Bucket
Tries to consume as much tokens from bucket as available in the bucket at the moment of invocation, but tokens which should be consumed is limited by than not more than limit.
TryConsumeCommand - Class in io.github.bucket4j.grid
 
TryConsumeCommand(long) - Constructor for class io.github.bucket4j.grid.TryConsumeCommand
 
tryConsumeImpl(long) - Method in class io.github.bucket4j.AbstractBucket
 
tryConsumeImpl(long) - Method in class io.github.bucket4j.grid.GridBucket
 
tryConsumeImpl(long) - Method in class io.github.bucket4j.local.LockFreeBucket
 
tryConsumeImpl(long) - Method in class io.github.bucket4j.local.SynchronizedBucket
 
tryConsumeImpl(long) - Method in class io.github.bucket4j.local.UnsafeBucket
 

U

UnsafeBucket - Class in io.github.bucket4j.local
 
UnsafeBucket(BucketConfiguration) - Constructor for class io.github.bucket4j.local.UnsafeBucket
 
UNSPECIFIED_WAITING_LIMIT - Static variable in class io.github.bucket4j.AbstractBucket
 

V

valueOf(String) - Static method in enum io.github.bucket4j.grid.RecoveryStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.bucket4j.local.SynchronizationStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.github.bucket4j.grid.RecoveryStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.bucket4j.local.SynchronizationStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

withCustomTimePrecision(TimeMeter) - Method in class io.github.bucket4j.AbstractBucketBuilder
Creates instance of AbstractBucketBuilder which will create buckets with customTimeMeter as time meter.
withMillisecondPrecision() - Method in class io.github.bucket4j.AbstractBucketBuilder
Creates instance of AbstractBucketBuilder which will create buckets with TimeMeter.SYSTEM_MILLISECONDS as time meter.
withNanosecondPrecision() - Method in class io.github.bucket4j.AbstractBucketBuilder
Creates instance of AbstractBucketBuilder which will create buckets with TimeMeter.SYSTEM_NANOTIME as time meter.
A B C D E G I J L N P R S T U V W 
Skip navigation links

Copyright © 2017. All rights reserved.