Class ResourceManagerImpl
java.lang.Object
org.apache.activemq.artemis.core.transaction.impl.ResourceManagerImpl
- All Implemented Interfaces:
ActiveMQComponent,ResourceManager
-
Constructor Summary
ConstructorsConstructorDescriptionResourceManagerImpl(ActiveMQServer server, int defaultTimeoutSeconds, long txTimeoutScanPeriod, ScheduledExecutorService scheduledThreadPool) -
Method Summary
Modifier and TypeMethodDescriptionintgetTransaction(Xid xid) booleanvoidputHeuristicCompletion(long recordID, Xid xid, boolean isCommit) booleanputTransaction(Xid xid, Transaction tx, RemotingConnection remotingConnection) longremoveTransaction(Xid xid, RemotingConnection remotingConnection) intsize()voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ResourceManagerImpl
public ResourceManagerImpl(ActiveMQServer server, int defaultTimeoutSeconds, long txTimeoutScanPeriod, ScheduledExecutorService scheduledThreadPool)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceResourceManager
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
getTransaction
- Specified by:
getTransactionin interfaceResourceManager
-
putTransaction
public boolean putTransaction(Xid xid, Transaction tx, RemotingConnection remotingConnection) throws ActiveMQException - Specified by:
putTransactionin interfaceResourceManager- Throws:
ActiveMQException
-
removeTransaction
public Transaction removeTransaction(Xid xid, RemotingConnection remotingConnection) throws ActiveMQException - Specified by:
removeTransactionin interfaceResourceManager- Throws:
ActiveMQException
-
getTimeoutSeconds
public int getTimeoutSeconds()- Specified by:
getTimeoutSecondsin interfaceResourceManager
-
getPreparedTransactions
- Specified by:
getPreparedTransactionsin interfaceResourceManager
-
getPreparedTransactionsWithCreationTime
- Specified by:
getPreparedTransactionsWithCreationTimein interfaceResourceManager
-
putHeuristicCompletion
- Specified by:
putHeuristicCompletionin interfaceResourceManager
-
getHeuristicCommittedTransactions
- Specified by:
getHeuristicCommittedTransactionsin interfaceResourceManager
-
getHeuristicRolledbackTransactions
- Specified by:
getHeuristicRolledbackTransactionsin interfaceResourceManager
-
removeHeuristicCompletion
- Specified by:
removeHeuristicCompletionin interfaceResourceManager
-
getInDoubtTransactions
- Specified by:
getInDoubtTransactionsin interfaceResourceManager
-