public abstract class AbstractManagedRuntime extends Object implements ManagedRuntime
| Constructor and Description |
|---|
AbstractManagedRuntime() |
| Modifier and Type | Method and Description |
|---|---|
void |
doNonTransactionalWork(Runnable runnable)
Do a unit of work which will execute outside of the current managed
transaction.
|
Object |
getTransactionKey()
Returns a transaction key that can be used to associate transactions
and Brokers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRollbackCause, getTransactionManager, setRollbackOnlypublic Object getTransactionKey() throws Exception, SystemException
getTransactionKey in interface ManagedRuntimeExceptionSystemExceptionpublic void doNonTransactionalWork(Runnable runnable) throws NotSupportedException
Do a unit of work which will execute outside of the current managed transaction. The default implementation suspends the transaction prior to execution, and resumes the transaction afterwards.
doNonTransactionalWork in interface ManagedRuntimerunnable - The runnable wrapper for the work that will be done. The
runnable object should be fully initialized with any state
needed to execute.NotSupportedException - if the current transaction can not be obtained, or an error
occurs when suspending or resuming the transaction.Copyright © 2006–2020 Apache Software Foundation. All rights reserved.