public interface RemoteCommand<T>
| Modifier and Type | Method and Description |
|---|---|
default VerboseCommand<T> |
asVerbose() |
static <I> RemoteCommand<?> |
deserialize(DeserializationAdapter<I> adapter,
I input) |
long |
estimateTokensToConsume() |
CommandResult<T> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
static RemoteCommand<?> |
fromJsonCompatibleSnapshot(Map<String,Object> snapshot) |
long |
getConsumedTokens(T result) |
Version |
getRequiredVersion() |
SerializationHandle<RemoteCommand<?>> |
getSerializationHandle() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
default boolean |
isInitializationCommand() |
static <O> void |
serialize(SerializationAdapter<O> adapter,
O output,
RemoteCommand<?> command,
Version backwardCompatibilityVersion,
Scope scope) |
static Map<String,Object> |
toJsonCompatibleSnapshot(RemoteCommand<?> command,
Version backwardCompatibilityVersion,
Scope scope) |
CommandResult<T> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
default VerboseCommand<T> asVerbose()
default boolean isInitializationCommand()
SerializationHandle<RemoteCommand<?>> getSerializationHandle()
boolean isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync)
long estimateTokensToConsume()
long getConsumedTokens(T result)
Version getRequiredVersion()
static <O> void serialize(SerializationAdapter<O> adapter, O output, RemoteCommand<?> command, Version backwardCompatibilityVersion, Scope scope) throws IOException
IOExceptionstatic <I> RemoteCommand<?> deserialize(DeserializationAdapter<I> adapter, I input) throws IOException
IOExceptionstatic RemoteCommand<?> fromJsonCompatibleSnapshot(Map<String,Object> snapshot) throws IOException
IOExceptionstatic Map<String,Object> toJsonCompatibleSnapshot(RemoteCommand<?> command, Version backwardCompatibilityVersion, Scope scope) throws IOException
IOExceptionCopyright © 2022. All rights reserved.