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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
Constructors Constructor Description TransactionalCommand(RedisCommand<K,V,T> command) -
Method Summary
Methods inherited from class io.lettuce.core.protocol.AsyncCommand
await, cancel, cancel, complete, completeExceptionally, completeResult, encode, equals, getArgs, getDelegate, getError, getOutput, getType, hashCode, onComplete, onComplete, setOutput, toStringMethods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDoneMethods inherited from interface io.lettuce.core.protocol.RedisCommand
cancel, complete, completeExceptionally, encode, getArgs, getOutput, getType, isCancelled, isDone, setOutput
-
Constructor Details
-
TransactionalCommand
-