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 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
Constructors Constructor Description JournalTransaction()
JournalTransaction(byte type, TransactionId transactionId, boolean wasPrepared)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getDataStructureType()
TransactionId
getTransactionId()
byte
getType()
boolean
getWasPrepared()
boolean
isMarshallAware()
void
setTransactionId(TransactionId transactionId)
void
setType(byte type)
void
setWasPrepared(boolean wasPrepared)
String
toString()
-
-
-
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 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:
isMarshallAware
in interfaceDataStructure
-
-