org.multiverse.api.callables
Interface TxnBooleanCallable
public interface TxnBooleanCallable
A transactional callable contains the logic that needs to be executed transactionally and normally is executed by the
TxnExecutor.
This transactional callable is optimized for retuning a primitive type: boolean. Using this TxnBooleanCallable instead of
the TxnCallable is that no object wrapper needs to be created and there is no reason to deal with a potential
null value.
- Author:
- Peter Veentjer.
|
Method Summary |
boolean |
call(Txn txn)
Executes the callable. |
call
boolean call(Txn txn)
throws Exception
- Executes the callable.
- Parameters:
txn - the Transaction. Depending on the txn PropagationLevel, this could
be null.
- Returns:
- the result of the execution.
- Throws:
Exception
Copyright © 2012. All Rights Reserved.