Module io.github.bucket4j.core
Interface AsyncProxyManager<K>
-
- Type Parameters:
K- type of primary key
public interface AsyncProxyManager<K>The asynchronous equivalent ofProxyManager.- See Also:
AsyncBucketProxy,ProxyManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteAsyncBucketBuilder<K>builder()Creates new instance ofRemoteAsyncBucketBuilderCompletableFuture<Optional<BucketConfiguration>>getProxyConfiguration(K key)Asynchronously locates configuration of bucket which actually stored in the underlying storage.CompletableFuture<Void>removeProxy(K key)Asynchronously removes persisted state of bucket from underlying storage.
-
-
-
Method Detail
-
builder
RemoteAsyncBucketBuilder<K> builder()
Creates new instance ofRemoteAsyncBucketBuilder- Returns:
- new instance of
RemoteAsyncBucketBuilder
-
removeProxy
CompletableFuture<Void> removeProxy(K key)
Asynchronously removes persisted state of bucket from underlying storage.- Parameters:
key- the primary key of bucket which state need to be removed from underlying storage.- Returns:
- the future that will be completed after deletion
-
getProxyConfiguration
CompletableFuture<Optional<BucketConfiguration>> getProxyConfiguration(K key)
Asynchronously locates configuration of bucket which actually stored in the underlying storage.- Parameters:
key- the unique identifier used to point to the bucket in external storage.- Returns:
- The future that completed by optional surround the configuration or empty optional if bucket with specified key is not stored.
-
-