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

org.jboss.narayana.compensations.internal.BAController Maven / Gradle / Ivy

There is a newer version: 7.1.0.Final
Show newest version
package org.jboss.narayana.compensations.internal;

import org.jboss.narayana.compensations.api.CompensationHandler;
import org.jboss.narayana.compensations.api.ConfirmationHandler;
import org.jboss.narayana.compensations.api.TransactionLoggedHandler;

/**
 * @author [email protected] 19/04/2014
 */
public interface BAController {

    void beginBusinessActivity() throws Exception;

    void closeBusinessActivity() throws Exception;

    void cancelBusinessActivity() throws Exception;

    void completeBusinessActivity(boolean isException) throws Exception;

    boolean isBARunning();

    Object suspend() throws Exception;

    void resume(Object context) throws Exception;

    Object getCurrentTransaction() throws Exception;

    ParticipantManager enlist(Class compensationHandlerClass,
            Class confirmationHandlerClass,
            Class transactionLoggedHandlerClass) throws Exception;

    ParticipantManager enlist(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler,
            TransactionLoggedHandler transactionLoggedHandler) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy