org.jboss.messaging.core.transaction.impl
Class ResourceManagerImpl
java.lang.Object
org.jboss.messaging.core.transaction.impl.ResourceManagerImpl
- All Implemented Interfaces:
- MessagingComponent, ResourceManager
public class ResourceManagerImpl
- extends java.lang.Object
- implements ResourceManager, MessagingComponent
A ResourceManagerImpl
- Author:
- Tim Fox
Constructor Summary |
ResourceManagerImpl(int defaultTimeoutSeconds,
long txTimeoutScanPeriod,
java.util.concurrent.ScheduledExecutorService scheduledThreadPool)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceManagerImpl
public ResourceManagerImpl(int defaultTimeoutSeconds,
long txTimeoutScanPeriod,
java.util.concurrent.ScheduledExecutorService scheduledThreadPool)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface MessagingComponent
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface MessagingComponent
- Throws:
java.lang.Exception
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface MessagingComponent
getTransaction
public Transaction getTransaction(javax.transaction.xa.Xid xid)
- Specified by:
getTransaction
in interface ResourceManager
putTransaction
public boolean putTransaction(javax.transaction.xa.Xid xid,
Transaction tx)
- Specified by:
putTransaction
in interface ResourceManager
removeTransaction
public Transaction removeTransaction(javax.transaction.xa.Xid xid)
- Specified by:
removeTransaction
in interface ResourceManager
getTimeoutSeconds
public int getTimeoutSeconds()
- Specified by:
getTimeoutSeconds
in interface ResourceManager
setTimeoutSeconds
public boolean setTimeoutSeconds(int timeoutSeconds)
- Specified by:
setTimeoutSeconds
in interface ResourceManager
getPreparedTransactions
public java.util.List<javax.transaction.xa.Xid> getPreparedTransactions()
- Specified by:
getPreparedTransactions
in interface ResourceManager
getPreparedTransactionsWithCreationTime
public java.util.Map<javax.transaction.xa.Xid,java.lang.Long> getPreparedTransactionsWithCreationTime()
- Specified by:
getPreparedTransactionsWithCreationTime
in interface ResourceManager
Copyright © 2006 JBoss Inc. All Rights Reserved.