- withBusyWaitSleepStrategy() - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Use a sleep strategy that will not yield the CPU to other processes.
- withCapacity(long) - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Specify the overall capacity of the token bucket.
- withFixedIntervalRefillStrategy(long, long, TimeUnit) - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Refill tokens at a fixed interval.
- withInitialTokens(long) - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Initialize the token bucket with a specific number of tokens.
- withRefillStrategy(TokenBucket.RefillStrategy) - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Use a user defined refill strategy.
- withSleepStrategy(TokenBucket.SleepStrategy) - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Use a user defined sleep strategy.
- withYieldingSleepStrategy() - Method in class org.isomorphism.util.TokenBuckets.Builder
-
Use a sleep strategy that will always attempt to yield the CPU to other processes.