- java.lang.Object
-
- io.github.bucket4j.LimitChecker
-
public class LimitChecker extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longINFINITY_DURATIONstatic longUNLIMITED_AMOUNT
-
Constructor Summary
Constructors Constructor Description LimitChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckConfiguration(BucketConfiguration newConfiguration)static voidcheckMaxWaitTime(long maxWaitTimeNanos)static voidcheckMigrationMode(TokensInheritanceStrategy tokensInheritanceStrategy)static voidcheckScheduler(ScheduledExecutorService scheduler)static voidcheckTokensToAdd(long tokensToAdd)static voidcheckTokensToConsume(long tokensToConsume)
-
-
-
Method Detail
-
checkTokensToAdd
public static void checkTokensToAdd(long tokensToAdd)
-
checkTokensToConsume
public static void checkTokensToConsume(long tokensToConsume)
-
checkMaxWaitTime
public static void checkMaxWaitTime(long maxWaitTimeNanos)
-
checkScheduler
public static void checkScheduler(ScheduledExecutorService scheduler)
-
checkConfiguration
public static void checkConfiguration(BucketConfiguration newConfiguration)
-
checkMigrationMode
public static void checkMigrationMode(TokensInheritanceStrategy tokensInheritanceStrategy)
-
-