Class EXEC
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.tx.EXEC
- All Implemented Interfaces:
BaseResp3Command
,Resp3Command
,TransactionResp3Command
EXEC
Retrieves the queued commands from the handler and executes them serially. If the handler returns a null
list, the transaction is aborted. The user installed a watch for a key, and the value was updated.
This implementation executes the operations outside a transaction context on the Infinispan level. Another user can see the state changing before the queue finishes. Even though Redis does not have the concept of commit/rollback, which means that everything is applied, the current implementation provides a weaker isolation level.
- Since:
- 15.0
- Author:
- José Bolina
- See Also:
-
Field Summary
Fields inherited from class org.infinispan.server.resp.RespCommand
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform
(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) perform
(RespTransactionHandler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class org.infinispan.server.resp.RespCommand
aclMask, extractKeys, fromByteBuf, fromString, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.server.resp.commands.BaseResp3Command
aclMask
-
Constructor Details
-
EXEC
public EXEC()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
perform
in interfaceResp3Command
-
perform
public CompletionStage<RespRequestHandler> perform(RespTransactionHandler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
perform
in interfaceTransactionResp3Command
-