public class ResourceManagerImpl extends Object implements ResourceManager
Constructor and Description |
---|
ResourceManagerImpl(int defaultTimeoutSeconds,
long txTimeoutScanPeriod,
ScheduledExecutorService scheduledThreadPool) |
Modifier and Type | Method and Description |
---|---|
List<Xid> |
getHeuristicCommittedTransactions() |
List<Xid> |
getHeuristicRolledbackTransactions() |
List<Xid> |
getInDoubtTransactions() |
List<Xid> |
getPreparedTransactions() |
Map<Xid,Long> |
getPreparedTransactionsWithCreationTime() |
int |
getTimeoutSeconds() |
Transaction |
getTransaction(Xid xid) |
boolean |
isStarted() |
void |
putHeuristicCompletion(long recordID,
Xid xid,
boolean isCommit) |
boolean |
putTransaction(Xid xid,
Transaction tx) |
long |
removeHeuristicCompletion(Xid xid) |
Transaction |
removeTransaction(Xid xid) |
void |
start() |
void |
stop() |
public ResourceManagerImpl(int defaultTimeoutSeconds, long txTimeoutScanPeriod, ScheduledExecutorService scheduledThreadPool)
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public Transaction getTransaction(Xid xid)
getTransaction
in interface ResourceManager
public boolean putTransaction(Xid xid, Transaction tx)
putTransaction
in interface ResourceManager
public Transaction removeTransaction(Xid xid)
removeTransaction
in interface ResourceManager
public int getTimeoutSeconds()
getTimeoutSeconds
in interface ResourceManager
public List<Xid> getPreparedTransactions()
getPreparedTransactions
in interface ResourceManager
public Map<Xid,Long> getPreparedTransactionsWithCreationTime()
getPreparedTransactionsWithCreationTime
in interface ResourceManager
public void putHeuristicCompletion(long recordID, Xid xid, boolean isCommit)
putHeuristicCompletion
in interface ResourceManager
public List<Xid> getHeuristicCommittedTransactions()
getHeuristicCommittedTransactions
in interface ResourceManager
public List<Xid> getHeuristicRolledbackTransactions()
getHeuristicRolledbackTransactions
in interface ResourceManager
public long removeHeuristicCompletion(Xid xid)
removeHeuristicCompletion
in interface ResourceManager
public List<Xid> getInDoubtTransactions()
getInDoubtTransactions
in interface ResourceManager
Copyright © 2017 JBoss by Red Hat. All rights reserved.