tyrex.tm.xid

Class BranchXid

public final class BranchXid extends BaseXid

Global transaction identifier with a branch qualifier. Used for all distributed transaction branches created locally. The format identifier is always the same.

Version: $Revision: 1.2 $

Author: Assaf Arkin

Constructor Summary
BranchXid(byte[] global, byte[] branch)
Construct a new transaction branch identifier.
BranchXid(String identifier, byte[] global, byte[] branch)
Used by XidUtils.
Method Summary
booleanequals(Object other)
byte[]getBranchQualifier()
intgetFormatId()
byte[]getGlobalTransactionId()
XidnewBranch()

Constructor Detail

BranchXid

BranchXid(byte[] global, byte[] branch)
Construct a new transaction branch identifier.

Parameters: global The global transaction identifier branch The branch qualifier

BranchXid

BranchXid(String identifier, byte[] global, byte[] branch)
Used by XidUtils.

Method Detail

equals

public boolean equals(Object other)

getBranchQualifier

public byte[] getBranchQualifier()

getFormatId

public int getFormatId()

getGlobalTransactionId

public byte[] getGlobalTransactionId()

newBranch

public Xid newBranch()
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.