org.multiverse.templates
Interface TransactionalCallable<V>
public interface TransactionalCallable<V>
A callable is executed using a Transaction. It essentially is the same as the
Callable. The only differences is that the transaction is passed
to the call(org.multiverse.api.Transaction) method.
The TransactionalCallable can be used in combination with the TransactionBoilerplate.
- Author:
- Peter Veentjer
|
Method Summary |
V |
call(Transaction tx)
Computes a result, or throws an exception if unable to do so. |
call
V call(Transaction tx)
throws Exception
- Computes a result, or throws an exception if unable to do so.
- Parameters:
tx - the Transaction
- Returns:
- computed result
- Throws:
Exception - if unable to compute a result
Copyright © 2008-2010 Multiverse. All Rights Reserved.