Package | Description |
---|---|
io.github.bucket4j.distributed | |
io.github.bucket4j.distributed.proxy |
Modifier and Type | Method and Description |
---|---|
BucketProxy |
BucketProxy.toListenable(BucketListener listener) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultBucketProxy |
Modifier and Type | Method and Description |
---|---|
BucketProxy |
RemoteBucketBuilder.build(K key,
BucketConfiguration configuration)
Builds the
BucketProxy . |
BucketProxy |
RemoteBucketBuilder.build(K key,
Supplier<BucketConfiguration> configurationSupplier)
Has the same semantic with
RemoteBucketBuilder.build(Object, BucketConfiguration) ,
but additionally provides ability to provide configuration lazily, that can be helpful when figuring-out the right configuration parameters
is costly, for example because parameters for particular key are stored in external database,
configurationSupplier will be called if and only if bucket has not been persisted before. |
BucketProxy |
DefaultBucketProxy.toListenable(BucketListener listener) |
Copyright © 2021. All rights reserved.