| 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)
Specifies
customTimeMeter time meter for buckets that will be created by this builder. |
LocalBucketBuilder |
LocalBucketBuilder.withMillisecondPrecision()
Specifies
TimeMeter.SYSTEM_MILLISECONDS as time meter for buckets that will be created by this builder. |
LocalBucketBuilder |
LocalBucketBuilder.withNanosecondPrecision()
Specifies
TimeMeter.SYSTEM_NANOTIME as time meter for buckets that will be created by this builder. |
LocalBucketBuilder |
LocalBucketBuilder.withSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy)
Specifies
synchronizationStrategy for buckets that will be created by this builder. |
Copyright © 2021. All rights reserved.