java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.tx.WATCH
All Implemented Interfaces:
Resp3Command, TransactionResp3Command

public class WATCH extends RespCommand implements Resp3Command, TransactionResp3Command
WATCH

Installs a clustered listener to watch for the given keys. The listener receives events for creation, updates, and expiration.

The watch instance is local to a single ChannelHandlerContext. To remove the listeners, the same context needs to execute the operation. There is no way to remove a single specific watcher. All listeners deregister during an EXEC, UNWATCH, DISCARD, transaction abort, or closed channel.

Since a listener is bound to a single connection, this ensures that another client does not affect each other's transactions safeguards.

Since:
15.0
Author:
José Bolina
See Also:
  • invalid input: '<'