Package com.atlassian.sal.spi
Interface HostContextAccessor.HostTransactionCallback<T>
- Enclosing interface:
- HostContextAccessor
public static interface HostContextAccessor.HostTransactionCallback<T>
The interface to implement for code that needs to be ran inside a host transaction
Use Void for void returns.
-
Method Summary
Modifier and TypeMethodDescriptionRuns an action in a transaction and returns a optional value.
-
Method Details
-
doInTransaction
T doInTransaction()Runs an action in a transaction and returns a optional value.- Returns:
- Optional result of the operation. May be null
- Throws:
RuntimeException- if anything went wrong. The caller will be responsible for rolling back.
-