All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.multiverse.templates.TransactionalCallable Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package org.multiverse.templates;

import org.multiverse.api.Transaction;

/**
 * A callable is executed using a {@link Transaction}. It essentially is the same as the
 * {@link java.util.concurrent.Callable}. The only differences is that the transaction is passed
 * to the {@link #call(org.multiverse.api.Transaction)} method.
 * 

* The TransactionalCallable can be used in combination with the {@link TransactionBoilerplate}. * * @author Peter Veentjer */ public interface TransactionalCallable { /** * Computes a result, or throws an exception if unable to do so. * * @param tx the Transaction * @return computed result * @throws Exception if unable to compute a result */ V call(Transaction tx) throws Exception; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy