Package org.infinispan.transaction.impl
Class ClusteredTransactionOriginatorChecker
java.lang.Object
org.infinispan.transaction.impl.ClusteredTransactionOriginatorChecker
- All Implemented Interfaces:
TransactionOriginatorChecker
public class ClusteredTransactionOriginatorChecker
extends Object
implements TransactionOriginatorChecker
A
TransactionOriginatorChecker
implementation for clustered caches.
It uses the current topology to fetch the live members to check if the transaction's originator is alive.
- Since:
- 9.1
- Author:
- Pedro Ruivo
-
Field Summary
Fields inherited from interface org.infinispan.transaction.impl.TransactionOriginatorChecker
LOCAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isOriginatorMissing
(GlobalTransaction gtx, Collection<Address> liveMembers)
-
Constructor Details
-
ClusteredTransactionOriginatorChecker
public ClusteredTransactionOriginatorChecker()
-
-
Method Details
-
isOriginatorMissing
- Specified by:
isOriginatorMissing
in interfaceTransactionOriginatorChecker
- Returns:
true
if the member who executedgtx
is missing.
-
isOriginatorMissing
- Specified by:
isOriginatorMissing
in interfaceTransactionOriginatorChecker
- Returns:
true
if the member who executedgtx
is missing using theliveMembers
.
-