| Package | Description |
|---|---|
| io.github.bucket4j |
| 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 arround System.nanoTime() |
| Modifier and Type | Method and Description |
|---|---|
TimeMeter |
BucketConfiguration.getTimeMeter() |
| Modifier and Type | Method and Description |
|---|---|
T |
ConfigurationBuilder.withCustomTimePrecision(TimeMeter customTimeMeter)
Creates instance of
ConfigurationBuilder which will create buckets with customTimeMeter as time meter. |
| Constructor and Description |
|---|
BucketConfiguration(List<io.github.bucket4j.BandwidthDefinition> bandwidths,
TimeMeter timeMeter) |
Copyright © 2017. All rights reserved.