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

org.infinispan.transaction.tm.EmbeddedTransaction Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.transaction.tm;


import javax.transaction.Transaction;
import javax.transaction.xa.XAResource;

import org.infinispan.commons.tx.TransactionImpl;

/**
 * A {@link Transaction} implementation used by {@link EmbeddedBaseTransactionManager}.
 * 

* See {@link EmbeddedBaseTransactionManager} for more details. * * @author Bela Ban * @author Pedro Ruivo * @see EmbeddedBaseTransactionManager * @since 9.0 */ public final class EmbeddedTransaction extends TransactionImpl { public EmbeddedTransaction(EmbeddedBaseTransactionManager tm) { super(); setXid(new EmbeddedXid(tm.getTransactionManagerId())); } public XAResource firstEnlistedResource() { return getEnlistedResources().iterator().next(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy