public class ReadOnlyTransactionExecutor<K> extends Object implements TransactionExecutor<K>, org.springframework.beans.factory.DisposableBean
TransactionExecutor
that wraps all
TransactionCallback
calls within a read only transaction.
Only one callback will be executed at a time (subsequent calls to wrapTransactionCallback will result in the
queueing of the provided actions).
This implementation will perform the transaction in a separate thread, and return a {Future
representing the result of the operation.Constructor and Description |
---|
ReadOnlyTransactionExecutor(org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Future<K> |
performTransactionAction(org.springframework.transaction.support.TransactionCallback action)
Invokes the provided action within its own transaction context, and returns a Future
representing the results of the invocation.
|
public ReadOnlyTransactionExecutor(org.springframework.transaction.PlatformTransactionManager transactionManager)
public Future<K> performTransactionAction(org.springframework.transaction.support.TransactionCallback action)
TransactionExecutor
performTransactionAction
in interface TransactionExecutor<K>
action
- to performCopyright © 2003–2021 Atlassian. All rights reserved.