Class RollbackTransactionOperation
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.operation.RollbackTransactionOperation
-
- All Implemented Interfaces:
Runnable,CacheNameCollector
public class RollbackTransactionOperation extends Object
It rollbacks a transaction in all involved caches.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description RollbackTransactionOperation(HotRodHeader header, HotRodServer server, Subject subject, XidImpl xid, BiConsumer<HotRodHeader,Integer> reply)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCache(ByteString cacheName, Status status)Adds the cache name and theSetDecisionFunctionreturn value.voidexpectedSize(int size)Sets the expected number of caches involved in the transaction.voidnoTransactionFound()Notifies that no transaction is found.voidrun()
-
-
-
Constructor Detail
-
RollbackTransactionOperation
public RollbackTransactionOperation(HotRodHeader header, HotRodServer server, Subject subject, XidImpl xid, BiConsumer<HotRodHeader,Integer> reply)
-
-
Method Detail
-
run
public void run()
-
addCache
public void addCache(ByteString cacheName, Status status)
Description copied from interface:CacheNameCollectorAdds the cache name and theSetDecisionFunctionreturn value.
-
expectedSize
public final void expectedSize(int size)
Description copied from interface:CacheNameCollectorSets the expected number of caches involved in the transaction.- Specified by:
expectedSizein interfaceCacheNameCollector
-
noTransactionFound
public final void noTransactionFound()
Description copied from interface:CacheNameCollectorNotifies that no transaction is found.- Specified by:
noTransactionFoundin interfaceCacheNameCollector
-
-