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

org.infinispan.commons.tx.TransactionResourceConverter Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.tx;

import javax.transaction.Synchronization;
import javax.transaction.xa.XAResource;

/**
 * Converts {@link Synchronization} and {@link XAResource} to {@link AsyncSynchronization} and {@link AsyncXaResource}.
 *
 * @since 14.0
 */
public interface TransactionResourceConverter {

   /**
    * @param synchronization The {@link Synchronization} to convert.
    * @return An {@link AsyncSynchronization} instance of {@code synchronization}.
    */
   AsyncSynchronization convertSynchronization(Synchronization synchronization);

   /**
    * @param resource The {@link XAResource} to convert.
    * @return An {@link AsyncXaResource} instance of {@code resource}.
    */
   AsyncXaResource convertXaResource(XAResource resource);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy