public interface RemoteCommand<T>
CommandResult<T> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
default VerboseCommand<T> asVerbose()
default boolean isInitializationCommand()
default boolean canBeMerged(RemoteCommand<?> another)
default void mergeInto(RemoteCommand<?> mergedCommand)
default RemoteCommand<?> toMergedCommand()
default boolean isMerged()
default CommandResult<?> unwrapOneResult(T result, int indice)
default int getMergedCommandsCount()
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 © 2024. All rights reserved.