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> |
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 HornetQComponent
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public boolean isStarted()
isStarted
in interface HornetQComponent
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
Copyright © 2018 JBoss by Red Hat. All rights reserved.