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 bytestatic final bytestatic final bytebytebooleanstatic final bytestatic final bytestatic final byte -
Constructor Summary
ConstructorsConstructorDescriptionJournalTransaction(byte type, TransactionId transactionId, boolean wasPrepared) -
Method Summary
Modifier and TypeMethodDescriptionbytebytegetType()booleanbooleanvoidsetTransactionId(TransactionId transactionId) voidsetType(byte type) voidsetWasPrepared(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:
getDataStructureTypein 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:
isMarshallAwarein interfaceDataStructure
-
toString
-