public final class BucketExceptions extends Object
Constructor and Description |
---|
BucketExceptions() |
Modifier and Type | Method and Description |
---|---|
static IllegalArgumentException |
nonPositiveCapacity(long capacity) |
static IllegalArgumentException |
nonPositiveInitialTokens(long initialTokens) |
static IllegalArgumentException |
nonPositiveNanosToWait(long waitIfBusyNanos) |
static IllegalArgumentException |
nonPositivePeriod(long period) |
static IllegalArgumentException |
nonPositivePeriodTokens(long tokens) |
static IllegalArgumentException |
nonPositiveTokensToConsume(long tokens) |
static IllegalArgumentException |
nullBandwidth() |
static IllegalArgumentException |
nullBandwidthRefill() |
static IllegalArgumentException |
nullPeriod() |
static IllegalArgumentException |
nullTimeMeter() |
static IllegalArgumentException |
restrictionsNotSpecified() |
static IllegalArgumentException |
tooHighRefillRate(long periodNanos,
long tokens) |
public static IllegalArgumentException nonPositiveCapacity(long capacity)
public static IllegalArgumentException nonPositiveInitialTokens(long initialTokens)
public static IllegalArgumentException nullBandwidth()
public static IllegalArgumentException nullBandwidthRefill()
public static IllegalArgumentException nullTimeMeter()
public static IllegalArgumentException nullPeriod()
public static IllegalArgumentException nonPositivePeriod(long period)
public static IllegalArgumentException nonPositivePeriodTokens(long tokens)
public static IllegalArgumentException restrictionsNotSpecified()
public static IllegalArgumentException tooHighRefillRate(long periodNanos, long tokens)
public static IllegalArgumentException nonPositiveNanosToWait(long waitIfBusyNanos)
public static IllegalArgumentException nonPositiveTokensToConsume(long tokens)
Copyright © 2017. All rights reserved.