|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.transaction.ReadOnlyTransactionExecutor<K>
public class ReadOnlyTransactionExecutor<K>
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 seperate thread, and return a {Future
representing the result of the operation.
Constructor Summary | |
---|---|
ReadOnlyTransactionExecutor(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
Method Summary | |
---|---|
java.util.concurrent.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlyTransactionExecutor(org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail |
---|
public java.util.concurrent.Future<K> performTransactionAction(org.springframework.transaction.support.TransactionCallback action)
TransactionExecutor
performTransactionAction
in interface TransactionExecutor<K>
action
- to perform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |