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

javax.transaction.xa.Xid Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 32.0.0.Final
Show newest version
package javax.transaction.xa;

/**
 *  The Xid interface is a Java mapping of the X/Open transaction identifier
 *  XID structure.
 *  

* A transaction id is an aggregate of three parts: *

    *
  • The format identifier indicates the transaction family and tells * how the other two parts should be interpreted. *
  • *
  • The global transaction id denotes, with the format specifier, the * id of the global transaction. *
  • *
  • The branch qualifier denotes a particular branch of the global * transaction. *
  • *
*

* The Xid interface is used by the application server, the transaction manager * and the resource managers, and is not used in application programs. * * @version $Revision$ */ public interface Xid { /** * The maximum possible size of a global transaction id. * This is the largest possible array returned by the * {@link #getGlobalTransactionId() getGlobalTransactionId} method. */ public static final int MAXGTRIDSIZE = 64; /** * The maximum possible size of a transaction branch qualifier. * This is the largest possible array returned by the * {@link #getBranchQualifier() getBranchQualifier} method. */ public static final int MAXBQUALSIZE = 64; /** * Get the format identifier. * * @return An integer denoting the family of this transaction, and * telling how the two other parts can be interpreted. */ public int getFormatId(); /** * Get the global transaction id of this transaction. * * Please note that JTA does not define if this method returns * a copy or a reference to an internal byte array. For maximum * portability, do not modify the returned array. * * @return A byte array that together with the format ID * defines the globally unique ID of this transaction. */ public byte[] getGlobalTransactionId(); /** * Get the transaction branch qualifier of this transaction. * * Please note that JTA does not define if this method returns * a copy or a reference to an internal byte array. For maximum * portability, do not modify the returned array. * * @return A byte array that identifies the branch of this * transaction. */ public byte[] getBranchQualifier(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy