| Modifier and Type | Method and Description |
|---|---|
static <O> void |
BucketState.serialize(SerializationAdapter<O> adapter,
O output,
BucketState state,
Version backwardCompatibilityVersion,
Scope scope) |
static Object |
BucketState.toJsonCompatibleSnapshot(BucketState state,
Version backwardCompatibilityVersion,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
protected Version |
AbstractProxyManager.getBackwardCompatibilityVersion() |
Version |
ClientSideConfig.getBackwardCompatibilityVersion()
Returns the Bucket4j protocol version is used to be backward compatible with other nodes in the cluster.
|
| Modifier and Type | Method and Description |
|---|---|
ClientSideConfig |
ClientSideConfig.backwardCompatibleWith(Version backwardCompatibilityVersion)
Returns new instance of
ClientSideConfig with configured backwardCompatibilityVersion. |
| Constructor and Description |
|---|
ClientSideConfig(Version backwardCompatibilityVersion,
Optional<TimeMeter> clientSideClock) |
| Constructor and Description |
|---|
GenericEntry(byte[] originalStateBytes,
Version backwardCompatibilityVersion) |
| Modifier and Type | Method and Description |
|---|---|
Version |
Request.getBackwardCompatibilityVersion() |
Version |
RemoteCommand.getRequiredVersion() |
| Modifier and Type | Method and Description |
|---|---|
static <O> void |
RemoteCommand.serialize(SerializationAdapter<O> adapter,
O output,
RemoteCommand<?> command,
Version backwardCompatibilityVersion,
Scope scope) |
static Map<String,Object> |
RemoteCommand.toJsonCompatibleSnapshot(RemoteCommand<?> command,
Version backwardCompatibilityVersion,
Scope scope) |
| Constructor and Description |
|---|
Request(RemoteCommand<T> command,
Version backwardCompatibilityVersion,
Long clientSideTime) |
| Modifier and Type | Method and Description |
|---|---|
Version |
ConsumeIgnoringRateLimitsCommand.getRequiredVersion() |
Version |
MultiCommand.getRequiredVersion() |
Version |
CreateInitialStateAndExecuteCommand.getRequiredVersion() |
Version |
TryConsumeCommand.getRequiredVersion() |
Version |
ResetCommand.getRequiredVersion() |
Version |
VerboseCommand.getRequiredVersion() |
Version |
ReserveAndCalculateTimeToSleepCommand.getRequiredVersion() |
Version |
AddTokensCommand.getRequiredVersion() |
Version |
GetAvailableTokensCommand.getRequiredVersion() |
Version |
SyncCommand.getRequiredVersion() |
Version |
CheckConfigurationVersionAndExecuteCommand.getRequiredVersion() |
Version |
EstimateAbilityToConsumeCommand.getRequiredVersion() |
Version |
CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand.getRequiredVersion() |
Version |
ReplaceConfigurationCommand.getRequiredVersion() |
Version |
CreateSnapshotCommand.getRequiredVersion() |
Version |
GetConfigurationCommand.getRequiredVersion() |
Version |
ForceAddTokensCommand.getRequiredVersion() |
Version |
ConsumeAsMuchAsPossibleCommand.getRequiredVersion() |
Version |
TryConsumeAndReturnRemainingTokensCommand.getRequiredVersion() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CommandResult<T> |
InternalSerializationHelper.deserializeResult(byte[] bytes,
Version backwardCompatibilityVersion) |
<O> void |
SerializationHandle.serialize(SerializationAdapter<O> adapter,
O output,
T serializableObject,
Version backwardCompatibilityVersion,
Scope scope) |
static byte[] |
InternalSerializationHelper.serializeResult(CommandResult<?> result,
Version backwardCompatibilityVersion) |
static byte[] |
InternalSerializationHelper.serializeState(RemoteBucketState state,
Version backwardCompatibilityVersion) |
Map<String,Object> |
SerializationHandle.toJsonCompatibleSnapshot(T serializableObject,
Version backwardCompatibilityVersion,
Scope scope) |
| Modifier and Type | Class and Description |
|---|---|
class |
Versions |
static class |
Versions.UnknownVersion |
| Modifier and Type | Method and Description |
|---|---|
static Version |
Versions.byNumber(int number) |
static Version |
Versions.getLatest() |
static Version |
Versions.getOldest() |
static Version |
Versions.max(Version first,
Version second) |
static Version |
Versions.max(Version first,
Version second,
Version third) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Versions.check(int formatNumber,
Version min,
Version max) |
static Version |
Versions.max(Version first,
Version second) |
static Version |
Versions.max(Version first,
Version second,
Version third) |
Copyright © 2022. All rights reserved.