public class ConfigurationBuilder<T extends ConfigurationBuilder> extends Object
Modifier | Constructor and Description |
---|---|
protected |
ConfigurationBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
addLimit(Bandwidth bandwidth)
Adds limited bandwidth for all buckets which will be constructed by this builder instance.
|
T |
addLimit(long initialTokens,
Bandwidth bandwidth)
Adds limited bandwidth for all buckets which will be constructed by this builder instance.
|
BucketConfiguration |
buildConfiguration() |
String |
toString() |
public BucketConfiguration buildConfiguration()
public T addLimit(Bandwidth bandwidth)
bandwidth
- limitationpublic T addLimit(long initialTokens, Bandwidth bandwidth)
bandwidth
- limitationinitialTokens
- the count of initial tokensCopyright © 2018. All rights reserved.