Interface CacheNameCollector
-
- All Known Implementing Classes:
CommitTransactionOperation,RollbackTransactionOperation
public interface CacheNameCollectorUsed byGlobalTxTable, 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, itTxStateis updated with the decision (viaSetDecisionFunction) andaddCache(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
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
expectedSize
void expectedSize(int size)
Sets the expected number of caches involved in the transaction.
-
addCache
void addCache(ByteString cacheName, Status status)
Adds the cache name and theSetDecisionFunctionreturn value.
-
noTransactionFound
void noTransactionFound()
Notifies that no transaction is found.
-
-