Package org.apache.activemq.command
Class JournalTransaction
java.lang.Object
org.apache.activemq.command.JournalTransaction
- All Implemented Interfaces:
DataStructure
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
byte
boolean
static final byte
static final byte
static final byte
-
Constructor Summary
ConstructorsConstructorDescriptionJournalTransaction
(byte type, TransactionId transactionId, boolean wasPrepared) -
Method Summary
Modifier and TypeMethodDescriptionbyte
byte
getType()
boolean
boolean
void
setTransactionId
(TransactionId transactionId) void
setType
(byte type) void
setWasPrepared
(boolean wasPrepared) toString()
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
XA_PREPARE
public static final byte XA_PREPARE- See Also:
-
XA_COMMIT
public static final byte XA_COMMIT- See Also:
-
XA_ROLLBACK
public static final byte XA_ROLLBACK- See Also:
-
LOCAL_COMMIT
public static final byte LOCAL_COMMIT- See Also:
-
LOCAL_ROLLBACK
public static final byte LOCAL_ROLLBACK- See Also:
-
type
public byte type -
wasPrepared
public boolean wasPrepared -
transactionId
-
-
Constructor Details
-
JournalTransaction
-
JournalTransaction
public JournalTransaction()
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getTransactionId
-
setTransactionId
-
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
-
toString
-