Interface CacheNameCollector
-
- All Known Implementing Classes:
CommitTransactionOperation
,RollbackTransactionOperation
public interface CacheNameCollector
Used 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, itTxState
is 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 void
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
noTransactionFound()
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 theSetDecisionFunction
return value.
-
noTransactionFound
void noTransactionFound()
Notifies that no transaction is found.
-
-