Package org.multiverse.api.callables
Interface TxnBooleanCallable
-
public interface TxnBooleanCallableA transactional callable contains the logic that needs to be executed transactionally and normally is executed by theTxnExecutor. This transactional callable is optimized for retuning a primitive type: boolean. Using this TxnBooleanCallable instead of theTxnCallableis that no object wrapper needs to be created and there is no reason to deal with a potential null value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancall(Txn txn)Executes the callable.
-
-
-
Method Detail
-
call
boolean call(Txn txn) throws java.lang.Exception
Executes the callable.- Parameters:
txn- the Transaction. Depending on the txnPropagationLevel, this could be null.- Returns:
- the result of the execution.
- Throws:
java.lang.Exception
-
-