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
ConstructorsConstructorDescriptionCommitTransactionOperation(HotRodHeader header, HotRodServer server, Subject subject, org.infinispan.commons.tx.XidImpl xid, BiConsumer<HotRodHeader, Integer> reply) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the cache name and theSetDecisionFunctionreturn value.final voidexpectedSize(int size) Sets the expected number of caches involved in the transaction.final voidNotifies that no transaction is found.voidrun()
-
Constructor Details
-
CommitTransactionOperation
public CommitTransactionOperation(HotRodHeader header, HotRodServer server, Subject subject, org.infinispan.commons.tx.XidImpl xid, BiConsumer<HotRodHeader, Integer> reply)
-
-
Method Details
-
run
public void run() -
addCache
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
-