org.jboss.mq.pm
Class TxManager.PreparedInfo

java.lang.Object
  extended by org.jboss.mq.pm.TxManager.PreparedInfo
Enclosing class:
TxManager

public static class TxManager.PreparedInfo
extends Object

Information about a prepared global transaction

Version:
$Revision: 57198 $
Author:
Adrian Brock

Constructor Summary
TxManager.PreparedInfo(Xid xid, boolean inDoubt)
          Create a new PreparedInfo.
 
Method Summary
 void add(Tx txid)
          Add a local branch
 Set getTxids()
          Get the local branches
 Xid getXid()
          Get the XID
 boolean isEmpty()
          Whether there are no local branches
 boolean isInDoubt()
          Whether the transaction is in doubt
 void remove(Tx txid)
          Remove a local branch
 void setInDoubt(boolean inDoubt)
          Set the in doubt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxManager.PreparedInfo

public TxManager.PreparedInfo(Xid xid,
                              boolean inDoubt)
Create a new PreparedInfo.

Parameters:
xid - the xid
indoubt - whether the transaction is in doubt
Method Detail

isInDoubt

public boolean isInDoubt()
Whether the transaction is in doubt

Returns:
true when in doubt

setInDoubt

public void setInDoubt(boolean inDoubt)
Set the in doubt

Parameters:
inDoubt - the in doubt value

getXid

public Xid getXid()
Get the XID

Returns:

getTxids

public Set getTxids()
Get the local branches

Returns:
the local branches

add

public void add(Tx txid)
Add a local branch

Parameters:
txid - the local branch

remove

public void remove(Tx txid)
Remove a local branch

Parameters:
txid - the local branch

isEmpty

public boolean isEmpty()
Whether there are no local branches

Returns:
true when there no local branches


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.