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

com.atomikos.icatch.Synchronization Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/**
 * Copyright (C) 2000-2023 Atomikos 
 *
 * LICENSE CONDITIONS
 *
 * See http://www.atomikos.com/Main/WhichLicenseApplies for details.
 */

package com.atomikos.icatch;

import com.atomikos.recovery.TxState;



 /**
  * A synchronization inferface for transaction termination callbacks.
  * Instances are volatile, i.e. not recovered after a crash/restart.
  */
  
 public interface Synchronization {
    /**
     * Called before prepare decision is made.
     */
     
     void beforeCompletion ();
    
    /**
     * Called after the overall outcome  is known.
     *
     * @param txstate The state of the coordinator after preparing.
     * Equals either null ( readonly ), TxState.COMMITTING  or TxState.ABORTING.
     */
     
     void afterCompletion ( TxState txstate );	
 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy