@Test public void testToString() { String text = supplier.get().toString(); assertThat(text).isEqualTo("DefaultTokenBucket{name='junit', capacity=1, refillStrategy=FixedIntervalRefillStrategy{refillRate=1.00 refill/s}, numberOfTokens=0}"); }
@Override public TokenBucket get() { return isSame() ? activeConfiguration.getTokenBucket() : reload().getTokenBucket(); }
FixedIntervalTokenBucketSupplier implements Supplier<TokenBucket> { @Override public TokenBucket get() { return isSame() ? activeConfiguration.getTokenBucket() : reload().getTokenBucket(); } }
FixedIntervalTokenBucketSupplier implements Supplier<TokenBucket> { @Override public TokenBucket get() { return isSame() ? activeConfiguration.getTokenBucket() : reload().getTokenBucket(); } FixedIntervalTokenBucketSupplier(String name,
                                            FixedIntervalTokenBucketConfiguration configuration,
                                            Consumer<TokenBucket> onChangeListener,
                                            Optional<TitusRuntime> titusRuntime); }
FixedIntervalTokenBucketSupplier implements Supplier<TokenBucket> { @Override public TokenBucket get() { return isSame() ? activeConfiguration.getTokenBucket() : reload().getTokenBucket(); } FixedIntervalTokenBucketSupplier(String name,
                                            FixedIntervalTokenBucketConfiguration configuration,
                                            Consumer<TokenBucket> onChangeListener,
                                            Optional<TitusRuntime> titusRuntime); @Override TokenBucket get(); }
FixedIntervalTokenBucketSupplier implements Supplier<TokenBucket> { @Override public TokenBucket get() { return isSame() ? activeConfiguration.getTokenBucket() : reload().getTokenBucket(); } FixedIntervalTokenBucketSupplier(String name,
                                            FixedIntervalTokenBucketConfiguration configuration,
                                            Consumer<TokenBucket> onChangeListener,
                                            Optional<TitusRuntime> titusRuntime); @Override TokenBucket get();  }