Package | Description |
---|---|
io.github.bucket4j | |
io.github.bucket4j.grid | |
io.github.bucket4j.local |
Modifier and Type | Field and Description |
---|---|
static SerializationHandle<BucketConfiguration> |
BucketConfiguration.SERIALIZATION_HANDLE |
Modifier and Type | Method and Description |
---|---|
BucketConfiguration |
ConfigurationBuilder.build() |
BucketConfiguration |
ConfigurationBuilder.buildConfiguration()
Deprecated.
|
protected BucketConfiguration |
AbstractBucketBuilder.buildConfiguration() |
BucketConfiguration |
VerboseResult.getConfiguration() |
BucketConfiguration |
IncompatibleConfigurationException.getNewConfiguration() |
BucketConfiguration |
IncompatibleConfigurationException.getPreviousConfiguration() |
protected abstract BucketConfiguration |
AbstractBucket.replaceConfigurationImpl(BucketConfiguration newConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected abstract CompletableFuture<BucketConfiguration> |
AbstractBucket.replaceConfigurationAsyncImpl(BucketConfiguration newConfiguration) |
protected abstract CompletableFuture<VerboseResult<BucketConfiguration>> |
AbstractBucket.replaceConfigurationVerboseAsyncImpl(BucketConfiguration newConfiguration) |
protected abstract VerboseResult<BucketConfiguration> |
AbstractBucket.replaceConfigurationVerboseImpl(BucketConfiguration newConfiguration) |
Constructor and Description |
---|
BucketState(BucketConfiguration configuration,
long currentTimeNanos) |
IncompatibleConfigurationException(BucketConfiguration previousConfiguration,
BucketConfiguration newConfiguration) |
VerboseResult(long operationTimeNanos,
T value,
BucketConfiguration configuration,
BucketState state) |
Modifier and Type | Method and Description |
---|---|
BucketConfiguration |
ReplaceConfigurationOrReturnPreviousCommand.execute(GridBucketState state,
long currentTimeNanos) |
BucketConfiguration |
GridBucketState.getConfiguration() |
BucketConfiguration |
ReplaceConfigurationOrReturnPreviousCommand.getNewConfiguration() |
protected BucketConfiguration |
GridBucket.replaceConfigurationImpl(BucketConfiguration newConfiguration) |
BucketConfiguration |
GridBucketState.replaceConfigurationOrReturnPrevious(BucketConfiguration newConfiguration) |
Modifier and Type | Method and Description |
---|---|
Optional<BucketConfiguration> |
GridProxy.getConfiguration(K key) |
Optional<BucketConfiguration> |
ProxyManager.getProxyConfiguration(K key)
Locates configuration of bucket which actually stored outside current JVM.
|
protected CompletableFuture<BucketConfiguration> |
GridBucket.replaceConfigurationAsyncImpl(BucketConfiguration newConfiguration) |
protected CompletableFuture<VerboseResult<BucketConfiguration>> |
GridBucket.replaceConfigurationVerboseAsyncImpl(BucketConfiguration newConfiguration) |
protected VerboseResult<BucketConfiguration> |
GridBucket.replaceConfigurationVerboseImpl(BucketConfiguration newConfiguration) |
Modifier and Type | Method and Description |
---|---|
static <T extends Serializable> |
GridBucket.createLazyBucket(T key,
Supplier<BucketConfiguration> configurationSupplier,
GridProxy<T> gridProxy) |
Bucket |
ProxyManager.getProxy(K key,
Supplier<BucketConfiguration> configurationLazySupplier)
Provides light-weight proxy to bucket which actually stored outside current JVM.
|
Constructor and Description |
---|
GridBucketState(BucketConfiguration configuration,
BucketState state) |
ReplaceConfigurationOrReturnPreviousCommand(BucketConfiguration newConfiguration) |
Modifier and Type | Method and Description |
---|---|
BucketConfiguration |
LocalBucket.getConfiguration()
Returns configuration of this bucket.
|
BucketConfiguration |
SynchronizedBucket.getConfiguration() |
BucketConfiguration |
LockFreeBucket.getConfiguration() |
protected BucketConfiguration |
SynchronizedBucket.replaceConfigurationImpl(BucketConfiguration newConfiguration) |
protected BucketConfiguration |
LockFreeBucket.replaceConfigurationImpl(BucketConfiguration newConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<BucketConfiguration> |
SynchronizedBucket.replaceConfigurationAsyncImpl(BucketConfiguration newConfiguration) |
protected CompletableFuture<BucketConfiguration> |
LockFreeBucket.replaceConfigurationAsyncImpl(BucketConfiguration newConfiguration) |
protected CompletableFuture<VerboseResult<BucketConfiguration>> |
SynchronizedBucket.replaceConfigurationVerboseAsyncImpl(BucketConfiguration newConfiguration) |
protected CompletableFuture<VerboseResult<BucketConfiguration>> |
LockFreeBucket.replaceConfigurationVerboseAsyncImpl(BucketConfiguration newConfiguration) |
protected VerboseResult<BucketConfiguration> |
SynchronizedBucket.replaceConfigurationVerboseImpl(BucketConfiguration newConfiguration) |
protected VerboseResult<BucketConfiguration> |
LockFreeBucket.replaceConfigurationVerboseImpl(BucketConfiguration newConfiguration) |
Constructor and Description |
---|
LockFreeBucket(BucketConfiguration configuration,
TimeMeter timeMeter) |
SynchronizedBucket(BucketConfiguration configuration,
TimeMeter timeMeter) |
Copyright © 2020. All rights reserved.