org.jboss.jms.tx
Class TransactionRequest
java.lang.Object
org.jboss.jms.tx.TransactionRequest
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public class TransactionRequest
- extends java.lang.Object
- implements java.io.Externalizable
This class contians all the data needed to perform a JMS transaction.
- Version:
- $Revision: 1022 $
$Id: TransactionRequest.java 1022 2006-07-20 14:04:02Z timfox $
- Author:
- Tim Fox
Partially based on JBossMQ version by:, Hiram Chirino, David Maplesden, Adrian Brock, Daniel Bloomfield Ramagem, Ovidiu Feodorov
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ONE_PHASE_COMMIT_REQUEST
public static final byte ONE_PHASE_COMMIT_REQUEST
- See Also:
- Constant Field Values
TWO_PHASE_PREPARE_REQUEST
public static final byte TWO_PHASE_PREPARE_REQUEST
- See Also:
- Constant Field Values
TWO_PHASE_COMMIT_REQUEST
public static final byte TWO_PHASE_COMMIT_REQUEST
- See Also:
- Constant Field Values
TWO_PHASE_ROLLBACK_REQUEST
public static final byte TWO_PHASE_ROLLBACK_REQUEST
- See Also:
- Constant Field Values
requestType
protected int requestType
xid
protected javax.transaction.xa.Xid xid
- For 2 phase commit, this identifies the transaction.
state
protected TxState state
TransactionRequest
public TransactionRequest()
TransactionRequest
public TransactionRequest(int requestType,
javax.transaction.xa.Xid xid,
TxState state)
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getState
public TxState getState()
getXid
public javax.transaction.xa.Xid getXid()
getRequestType
public int getRequestType()
toString
public java.lang.String toString()
Copyright © 2006 JBoss Inc. All Rights Reserved.