- java.lang.Object
-
- io.github.bucket4j.BucketExceptions
-
public final class BucketExceptions extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBucketExceptions.BucketExecutionException
-
Method Summary
-
-
-
Method Detail
-
nonPositiveCapacity
public static IllegalArgumentException nonPositiveCapacity(long capacity)
-
nonPositiveInitialTokens
public static IllegalArgumentException nonPositiveInitialTokens(long initialTokens)
-
nullBandwidth
public static IllegalArgumentException nullBandwidth()
-
nullBandwidthRefill
public static IllegalArgumentException nullBandwidthRefill()
-
nullTimeMeter
public static IllegalArgumentException nullTimeMeter()
-
nullSynchronizationStrategy
public static IllegalArgumentException nullSynchronizationStrategy()
-
nullListener
public static IllegalArgumentException nullListener()
-
nullRefillPeriod
public static IllegalArgumentException nullRefillPeriod()
-
nullFixedRefillInterval
public static IllegalArgumentException nullFixedRefillInterval()
-
nullScheduler
public static IllegalArgumentException nullScheduler()
-
nullConfiguration
public static IllegalArgumentException nullConfiguration()
-
nullConfigurationFuture
public static Throwable nullConfigurationFuture()
-
nullConfigurationSupplier
public static IllegalArgumentException nullConfigurationSupplier()
-
nonPositivePeriod
public static IllegalArgumentException nonPositivePeriod(long period)
-
nonPositiveLimitToSync
public static IllegalArgumentException nonPositiveLimitToSync(long unsynchronizedPeriod)
-
nonPositiveFixedRefillInterval
public static IllegalArgumentException nonPositiveFixedRefillInterval(Duration fixedRefillInterval)
-
nonPositivePeriodTokens
public static IllegalArgumentException nonPositivePeriodTokens(long tokens)
-
nonPositiveTokensForDelayParameters
public static IllegalArgumentException nonPositiveTokensForDelayParameters(long maxUnsynchronizedTokens)
-
nullMaxTimeoutBetweenSynchronizationForDelayParameters
public static IllegalArgumentException nullMaxTimeoutBetweenSynchronizationForDelayParameters()
-
nonPositiveMaxTimeoutBetweenSynchronizationForDelayParameters
public static IllegalArgumentException nonPositiveMaxTimeoutBetweenSynchronizationForDelayParameters(Duration maxTimeoutBetweenSynchronization)
-
wrongValueOfMinSamplesForPredictionParameters
public static IllegalArgumentException wrongValueOfMinSamplesForPredictionParameters(int minSamples)
-
maxSamplesForPredictionParametersCanNotBeLessThanMinSamples
public static IllegalArgumentException maxSamplesForPredictionParametersCanNotBeLessThanMinSamples(int minSamples, int maxSamples)
-
nonPositiveSampleMaxAgeForPredictionParameters
public static IllegalArgumentException nonPositiveSampleMaxAgeForPredictionParameters(long maxUnsynchronizedTimeoutNanos)
-
restrictionsNotSpecified
public static IllegalArgumentException restrictionsNotSpecified()
-
tooHighRefillRate
public static IllegalArgumentException tooHighRefillRate(long periodNanos, long tokens)
-
nonPositiveTimeOfFirstRefill
public static IllegalArgumentException nonPositiveTimeOfFirstRefill(Instant timeOfFirstRefill)
-
intervallyAlignedRefillWithAdaptiveInitialTokensIncompatipleWithManualSpecifiedInitialTokens
public static IllegalArgumentException intervallyAlignedRefillWithAdaptiveInitialTokensIncompatipleWithManualSpecifiedInitialTokens()
-
intervallyAlignedRefillCompatibleOnlyWithWallClock
public static IllegalArgumentException intervallyAlignedRefillCompatibleOnlyWithWallClock()
-
foundTwoBandwidthsWithSameId
public static IllegalArgumentException foundTwoBandwidthsWithSameId(int firstIndex, int secondIndex, String id)
-
nonPositiveNanosToWait
public static IllegalArgumentException nonPositiveNanosToWait(long waitIfBusyNanos)
-
nonPositiveTokensToConsume
public static IllegalArgumentException nonPositiveTokensToConsume(long tokens)
-
nonPositiveTokensLimitToSync
public static IllegalArgumentException nonPositiveTokensLimitToSync(long tokens)
-
reservationOverflow
public static IllegalArgumentException reservationOverflow()
-
nullTokensInheritanceStrategy
public static IllegalArgumentException nullTokensInheritanceStrategy()
-
executionException
public static BucketExceptions.BucketExecutionException executionException(Throwable cause)
-
asyncModeIsNotSupported
public static UnsupportedOperationException asyncModeIsNotSupported()
-
-