org.apache.activemq.util
Class TransactionTemplate
java.lang.Object
org.apache.activemq.util.TransactionTemplate
public class TransactionTemplate
- extends Object
A helper class for running code with a PersistenceAdapter in a transaction.
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionTemplate
public TransactionTemplate(PersistenceAdapter persistenceAdapter,
ConnectionContext context)
run
public void run(Callback task)
throws IOException
- Throws:
IOException
getContext
public ConnectionContext getContext()
getPersistenceAdapter
public PersistenceAdapter getPersistenceAdapter()
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.