org.apache.activemq.command
Class JournalTransaction

java.lang.Object
  extended by org.apache.activemq.command.JournalTransaction
All Implemented Interfaces:
DataStructure

public class JournalTransaction
extends Object
implements DataStructure


Field Summary
static byte DATA_STRUCTURE_TYPE
           
static byte LOCAL_COMMIT
           
static byte LOCAL_ROLLBACK
           
 TransactionId transactionId
           
 byte type
           
 boolean wasPrepared
           
static byte XA_COMMIT
           
static byte XA_PREPARE
           
static byte XA_ROLLBACK
           
 
Constructor Summary
JournalTransaction()
           
JournalTransaction(byte type, TransactionId transactionId, boolean wasPrepared)
           
 
Method Summary
 byte getDataStructureType()
           
 TransactionId getTransactionId()
           
 byte getType()
           
 boolean getWasPrepared()
           
 boolean isMarshallAware()
           
 void setTransactionId(TransactionId transactionId)
           
 void setType(byte type)
           
 void setWasPrepared(boolean wasPrepared)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

XA_PREPARE

public static final byte XA_PREPARE
See Also:
Constant Field Values

XA_COMMIT

public static final byte XA_COMMIT
See Also:
Constant Field Values

XA_ROLLBACK

public static final byte XA_ROLLBACK
See Also:
Constant Field Values

LOCAL_COMMIT

public static final byte LOCAL_COMMIT
See Also:
Constant Field Values

LOCAL_ROLLBACK

public static final byte LOCAL_ROLLBACK
See Also:
Constant Field Values

type

public byte type

wasPrepared

public boolean wasPrepared

transactionId

public TransactionId transactionId
Constructor Detail

JournalTransaction

public JournalTransaction(byte type,
                          TransactionId transactionId,
                          boolean wasPrepared)

JournalTransaction

public JournalTransaction()
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

getTransactionId

public TransactionId getTransactionId()

setTransactionId

public void setTransactionId(TransactionId transactionId)

getType

public byte getType()

setType

public void setType(byte type)

getWasPrepared

public boolean getWasPrepared()

setWasPrepared

public void setWasPrepared(boolean wasPrepared)

isMarshallAware

public boolean isMarshallAware()
Specified by:
isMarshallAware in interface DataStructure

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.