18#ifndef _ACTIVEMQ_STATE_TRANSACTIONSTATE_H_
19#define _ACTIVEMQ_STATE_TRANSACTIONSTATE_H_
37 using decaf::lang::Pointer;
38 using decaf::util::LinkedList;
39 using decaf::util::concurrent::atomic::AtomicBoolean;
40 using decaf::util::concurrent::ConcurrentStlMap;
41 using namespace activemq::commands;
58 TransactionState(
const TransactionState&);
59 TransactionState& operator=(
const TransactionState&);
86 this->prepared = prepared;
90 return this->prepared;
94 this->preparedResult = preparedResult;
98 return this->preparedResult;
#define AMQCPP_API
Definition Config.h:30
decaf::lang::PointerComparator< ProducerId > COMPARATOR
Definition ProducerId.h:59
Definition ProducerState.h:37
bool isPrepared() const
Definition TransactionState.h:89
void setPrepared(bool prepared)
Definition TransactionState.h:85
void addCommand(Pointer< Command > operation)
TransactionState(Pointer< TransactionId > id)
const Pointer< TransactionId > getId() const
Definition TransactionState.h:81
const decaf::util::Collection< Pointer< ProducerState > > & getProducerStates()
std::string toString() const
const LinkedList< Pointer< Command > > & getCommands() const
Definition TransactionState.h:77
virtual ~TransactionState()
void checkShutdown() const
int getPreparedResult() const
Definition TransactionState.h:97
void setPreparedResult(int preparedResult)
Definition TransactionState.h:93
void addProducerState(Pointer< ProducerState > producerState)
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
The root interface in the collection hierarchy.
Definition Collection.h:69
A complete implementation of the List interface using a doubly linked list data structure.
Definition LinkedList.h:55
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition ConcurrentStlMap.h:51
A boolean value that may be updated atomically.
Definition AtomicBoolean.h:34
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24