Package | Description |
---|---|
io.github.bucket4j | |
io.github.bucket4j.local |
Modifier and Type | Field and Description |
---|---|
static TimeMeter |
TimeMeter.SYSTEM_MILLISECONDS
The implementation of
TimeMeter which works around System.currentTimeMillis() |
static TimeMeter |
TimeMeter.SYSTEM_NANOTIME
The implementation of
TimeMeter which works around System.nanoTime() |
Modifier and Type | Method and Description |
---|---|
LocalBucketBuilder |
LocalBucketBuilder.withCustomTimePrecision(TimeMeter customTimeMeter)
Creates instance of
ConfigurationBuilder which will create buckets with customTimeMeter as time meter. |
Constructor and Description |
---|
LockFreeBucket(BucketConfiguration configuration,
TimeMeter timeMeter) |
SynchronizedBucket(BucketConfiguration configuration,
TimeMeter timeMeter) |
SynchronizedBucket(BucketConfiguration configuration,
TimeMeter timeMeter,
Lock lock) |
Copyright © 2017. All rights reserved.