| Package | Description |
|---|---|
| io.github.bucket4j.distributed | |
| io.github.bucket4j.distributed.proxy |
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncBucketProxyAdapter |
| Modifier and Type | Method and Description |
|---|---|
static AsyncBucketProxy |
AsyncBucketProxyAdapter.fromSync(Bucket bucket)
TODO
|
AsyncBucketProxy |
AsyncBucketProxyAdapter.toListenable(BucketListener listener) |
AsyncBucketProxy |
AsyncBucketProxy.toListenable(BucketListener listener)
Returns new copy of this bucket instance decorated by
listener. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultAsyncBucketProxy |
| Modifier and Type | Method and Description |
|---|---|
AsyncBucketProxy |
RemoteAsyncBucketBuilder.build(K key,
BucketConfiguration configuration)
Deprecated.
use
RemoteAsyncBucketBuilder.build(Object, Supplier) instead. This method will be removed soon |
AsyncBucketProxy |
RemoteAsyncBucketBuilder.build(K key,
Supplier<CompletableFuture<BucketConfiguration>> configurationSupplier)
Has the same semantic with
RemoteAsyncBucketBuilder.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. |
AsyncBucketProxy |
DefaultAsyncBucketProxy.toListenable(BucketListener listener) |
Copyright © 2024. All rights reserved.