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
 T doInTransaction()
          Runs an action in a transaction and returns a optional value.
 

Method Detail

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.


Copyright © 2015 Atlassian. All rights reserved.