18#ifndef _ACTIVEMQ_COMMANDS_XATRANSACTIONID_H_
19#define _ACTIVEMQ_COMMANDS_XATRANSACTIONID_H_
23#pragma warning( disable : 4290 )
37 using decaf::lang::Pointer;
53 using TransactionId::operator <;
54 using TransactionId::operator==;
96 virtual bool equals(
const Xid* other)
const;
#define AMQCPP_API
Definition Config.h:30
Definition DataStructure.h:27
virtual int compareTo(const TransactionId &value) const
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual std::vector< unsigned char > & getBranchQualifier()
virtual int getGlobalTransactionId(unsigned char *buffer, int size) const
Gets the global transaction id component of the XID.
std::vector< unsigned char > branchQualifier
Definition XATransactionId.h:60
virtual void setBranchQualifier(const std::vector< unsigned char > &branchQualifier)
int formatId
Definition XATransactionId.h:58
virtual const std::vector< unsigned char > & getBranchQualifier() const
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual int getBranchQualifier(unsigned char *buffer, int size) const
Gets the transaction branch qualifier component of the XID.
virtual int compareTo(const XATransactionId &value) const
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
static const unsigned char ID_XATRANSACTIONID
Definition XATransactionId.h:64
virtual bool operator<(const XATransactionId &value) const
virtual bool operator==(const XATransactionId &value) const
decaf::lang::PointerComparator< XATransactionId > COMPARATOR
Definition XATransactionId.h:66
std::vector< unsigned char > globalTransactionId
Definition XATransactionId.h:59
XATransactionId(const XATransactionId &other)
virtual std::vector< unsigned char > & getGlobalTransactionId()
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual bool equals(const Xid *other) const
XATransactionId(const cms::Xid *xid)
virtual int getFormatId() const
Gets the format identifier component of the XID.
virtual void setFormatId(int formatId)
virtual ~XATransactionId()
virtual bool equals(const XATransactionId &value) const
virtual Xid * clone() const
Creates a Copy of this Xid instance that contains the same id values.
virtual const std::vector< unsigned char > & getGlobalTransactionId() const
virtual void setGlobalTransactionId(const std::vector< unsigned char > &globalTransactionId)
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual XATransactionId * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
virtual bool isXATransactionId() const
Definition XATransactionId.h:88
An interface which provides a mapping for the X/Open XID transaction identifier structure.
Definition Xid.h:37
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
This implementation of Comparator is designed to allows objects in a Collection to be sorted or teste...
Definition Pointer.h:366
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24