Package org.apache.activemq.command
Class JournalTransaction
- java.lang.Object
-
- org.apache.activemq.command.JournalTransaction
-
- All Implemented Interfaces:
DataStructure
public class JournalTransaction extends Object implements DataStructure
-
-
Field Summary
Fields Modifier and Type Field Description static byteDATA_STRUCTURE_TYPEstatic byteLOCAL_COMMITstatic byteLOCAL_ROLLBACKTransactionIdtransactionIdbytetypebooleanwasPreparedstatic byteXA_COMMITstatic byteXA_PREPAREstatic byteXA_ROLLBACK
-
Constructor Summary
Constructors Constructor Description JournalTransaction()JournalTransaction(byte type, TransactionId transactionId, boolean wasPrepared)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetDataStructureType()TransactionIdgetTransactionId()bytegetType()booleangetWasPrepared()booleanisMarshallAware()voidsetTransactionId(TransactionId transactionId)voidsetType(byte type)voidsetWasPrepared(boolean wasPrepared)StringtoString()
-
-
-
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:
getDataStructureTypein interfaceDataStructure- 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:
isMarshallAwarein interfaceDataStructure
-
-