Module lettuce.core

Class TransactionalCommand<K,​V,​T>

java.lang.Object
java.util.concurrent.CompletableFuture<T>
io.lettuce.core.protocol.AsyncCommand<K,​V,​T>
io.lettuce.core.protocol.TransactionalCommand<K,​V,​T>
Type Parameters:
K - Key type.
V - Value type.
T - Command output type.
All Implemented Interfaces:
CompleteableCommand<T>, DecoratedCommand<K,​V,​T>, RedisCommand<K,​V,​T>, RedisFuture<T>, CompletionStage<T>, Future<T>

public class TransactionalCommand<K,​V,​T>
extends AsyncCommand<K,​V,​T>
implements RedisCommand<K,​V,​T>
A wrapper for commands within a MULTI transaction. Commands triggered within a transaction will be completed twice. Once on the submission and once during EXEC. Only the second completion will complete the underlying command.
Author:
Mark Paluch
  • Constructor Details

    • TransactionalCommand

      public TransactionalCommand​(RedisCommand<K,​V,​T> command)