public class TransactionalExecutionTemplate<T> extends Object implements ExecutionTemplate<T>
Modifier and Type | Method and Description |
---|---|
static <T> TransactionalExecutionTemplate<T> |
createTransactionalExecutionTemplate(MuleContext muleContext,
TransactionConfig transactionConfig)
Creates a ExecutionTemplate that will manage transactional context according to configured TransactionConfig
|
T |
execute(ExecutionCallback<T> executionCallback) |
public static <T> TransactionalExecutionTemplate<T> createTransactionalExecutionTemplate(MuleContext muleContext, TransactionConfig transactionConfig)
muleContext
- MuleContext for this applicationtransactionConfig
- transaction config for the execution contextpublic T execute(ExecutionCallback<T> executionCallback) throws Exception
execute
in interface ExecutionTemplate<T>
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.