Package | Description |
---|---|
io.github.bucket4j | |
io.github.bucket4j.local |
Modifier and Type | Method and Description |
---|---|
static LocalBucketBuilder |
Bucket4j.builder()
Creates the new builder of in-memory buckets.
|
Modifier and Type | Method and Description |
---|---|
LocalBucketBuilder |
LocalBucketBuilder.withCustomTimePrecision(TimeMeter customTimeMeter)
Creates instance of
ConfigurationBuilder which will create buckets with customTimeMeter as time meter. |
LocalBucketBuilder |
LocalBucketBuilder.withMillisecondPrecision()
Creates instance of
ConfigurationBuilder which will create buckets with TimeMeter.SYSTEM_MILLISECONDS as time meter. |
LocalBucketBuilder |
LocalBucketBuilder.withNanosecondPrecision()
Creates instance of
ConfigurationBuilder which will create buckets with TimeMeter.SYSTEM_NANOTIME as time meter. |
Copyright © 2018. All rights reserved.