Class CommitTransactionOperation
java.lang.Object
org.infinispan.server.hotrod.tx.operation.CommitTransactionOperation
- All Implemented Interfaces:
Runnable
,CacheNameCollector
It commits a transaction in all involved caches.
- Since:
- 9.4
- Author:
- Pedro Ruivo
-
Constructor Summary
ConstructorDescriptionCommitTransactionOperation
(HotRodHeader header, HotRodServer server, Subject subject, XidImpl xid, BiConsumer<HotRodHeader, Integer> reply) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCache
(ByteString cacheName, Status status) Adds the cache name and theSetDecisionFunction
return value.final void
expectedSize
(int size) Sets the expected number of caches involved in the transaction.final void
Notifies that no transaction is found.void
run()
-
Constructor Details
-
CommitTransactionOperation
public CommitTransactionOperation(HotRodHeader header, HotRodServer server, Subject subject, XidImpl xid, BiConsumer<HotRodHeader, Integer> reply)
-
-
Method Details
-
run
public void run() -
addCache
Description copied from interface:CacheNameCollector
Adds the cache name and theSetDecisionFunction
return value. -
expectedSize
public final void expectedSize(int size) Description copied from interface:CacheNameCollector
Sets the expected number of caches involved in the transaction.- Specified by:
expectedSize
in interfaceCacheNameCollector
-
noTransactionFound
public final void noTransactionFound()Description copied from interface:CacheNameCollector
Notifies that no transaction is found.- Specified by:
noTransactionFound
in interfaceCacheNameCollector
-