public interface RemoteCommand<T>
Modifier and Type | Method and Description |
---|---|
default VerboseCommand<T> |
asVerbose() |
static <I> RemoteCommand<?> |
deserialize(DeserializationAdapter<I> adapter,
I input,
Version backwardCompatibilityVersion) |
long |
estimateTokensToConsume() |
CommandResult<T> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
long |
getConsumedTokens(T result) |
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) |
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)
static <O> void serialize(SerializationAdapter<O> adapter, O output, RemoteCommand<?> command, Version backwardCompatibilityVersion) throws IOException
IOException
static <I> RemoteCommand<?> deserialize(DeserializationAdapter<I> adapter, I input, Version backwardCompatibilityVersion) throws IOException
IOException
Copyright © 2020. All rights reserved.