Interface CacheNameCollector
- All Known Implementing Classes:
CommitTransactionOperation
,RollbackTransactionOperation
public interface CacheNameCollector
Used by
GlobalTxTable
, it collects all the involved cache name when setting a decision for a transaction.
Initially, expectedSize(int)
is invoked with the number of caches found. For all cache, it TxState
is updated with the decision (via SetDecisionFunction
) and addCache(ByteString, Status)
is invoked
with the cache name and the function return value.
If no transaction is found, only noTransactionFound()
is invoked.
- Since:
- 9.4
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCache
(ByteString cacheName, Status status) Adds the cache name and theSetDecisionFunction
return value.void
expectedSize
(int size) Sets the expected number of caches involved in the transaction.void
Notifies that no transaction is found.
-
Method Details
-
expectedSize
void expectedSize(int size) Sets the expected number of caches involved in the transaction. -
addCache
Adds the cache name and theSetDecisionFunction
return value. -
noTransactionFound
void noTransactionFound()Notifies that no transaction is found.
-