public class TransactionManagerServiceImpl extends Object implements TransactionManagerService, ManagedService, MembershipAwareService, ClientAwareService
| Modifier and Type | Field and Description |
|---|---|
static int |
RECOVER_TIMEOUT |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
TransactionManagerServiceImpl(NodeEngineImpl nodeEngine) |
public static final String SERVICE_NAME
public static final int RECOVER_TIMEOUT
public TransactionManagerServiceImpl(NodeEngineImpl nodeEngine)
public <T> T executeTransaction(TransactionOptions options, TransactionalTask<T> task) throws TransactionException
executeTransaction in interface TransactionManagerServiceTransactionExceptionpublic TransactionContext newTransactionContext(TransactionOptions options)
newTransactionContext in interface TransactionManagerServicepublic TransactionContext newClientTransactionContext(TransactionOptions options, String clientUuid)
newClientTransactionContext in interface TransactionManagerServicepublic void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine this ManagedService is initialized with.properties - the Propertiespublic void reset()
ManagedServicereset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceshutdown in interface ManagedServicepublic void memberAdded(MembershipServiceEvent event)
MembershipAwareServicememberAdded in interface MembershipAwareServicepublic void addClientRecoveredTransaction(RecoveredTransaction rt)
public void recoverClientTransaction(SerializableXID sXid, boolean commit)
public void memberRemoved(MembershipServiceEvent event)
MembershipAwareServicememberRemoved in interface MembershipAwareServicepublic void memberAttributeChanged(MemberAttributeServiceEvent event)
MembershipAwareServicememberAttributeChanged in interface MembershipAwareServicepublic void addManagedTransaction(Xid xid, Transaction transaction)
public Transaction getManagedTransaction(Xid xid)
public void removeManagedTransaction(Xid xid)
public void clientDisconnected(String clientUuid)
ClientAwareServiceclientDisconnected in interface ClientAwareServicepublic void addTxBackupLogForClientRecovery(Transaction transaction)
public Xid[] recover()
public Set<RecoveredTransaction> recoverLocal()
Copyright © 2021 Hazelcast, Inc.. All rights reserved.