17 #ifndef _ACTIVEMQ_CORE_ACTIVEMQCONSTANTS_H_ 18 #define _ACTIVEMQ_CORE_ACTIVEMQCONSTANTS_H_ 37 TRANSACTION_STATE_BEGIN = 0,
38 TRANSACTION_STATE_PREPARE = 1,
39 TRANSACTION_STATE_COMMITONEPHASE = 2,
40 TRANSACTION_STATE_COMMITTWOPHASE = 3,
41 TRANSACTION_STATE_ROLLBACK = 4,
42 TRANSACTION_STATE_RECOVER = 5,
43 TRANSACTION_STATE_FORGET = 6,
44 TRANSACTION_STATE_END = 7
49 DESTINATION_ADD_OPERATION = 0,
50 DESTINATION_REMOVE_OPERATION = 1
56 ACK_TYPE_DELIVERED = 0,
59 ACK_TYPE_CONSUMED = 2,
60 ACK_TYPE_REDELIVERED = 3,
61 ACK_TYPE_INDIVIDUAL = 4
99 return StaticInitializer::destOptions[option];
103 std::map<std::string, DestinationOption>::iterator iter = StaticInitializer::destOptionMap.find(option);
105 if (iter == StaticInitializer::destOptionMap.end()) {
113 return StaticInitializer::uriParams[option];
117 std::map<std::string, URIParam>::iterator iter = StaticInitializer::uriParamsMap.find(option);
119 if (iter == StaticInitializer::uriParamsMap.end()) {
131 static std::string destOptions[NUM_OPTIONS];
132 static std::string uriParams[NUM_PARAMS];
Definition: ActiveMQConstants.h:75
Definition: ActiveMQConstants.h:74
Definition: ActiveMQConstants.h:87
static const std::string & toString(const URIParam option)
Definition: ActiveMQConstants.h:112
static std::map< std::string, DestinationOption > destOptionMap
Definition: ActiveMQConstants.h:133
Definition: ActiveMQConstants.h:88
#define AMQCPP_API
Definition: Config.h:30
static std::map< std::string, URIParam > uriParamsMap
Definition: ActiveMQConstants.h:134
Definition: ActiveMQConstants.h:90
virtual ~StaticInitializer()
Definition: ActiveMQConstants.h:129
AckType
Definition: ActiveMQConstants.h:55
TransactionState
Definition: ActiveMQConstants.h:36
Definition: ActiveMQConstants.h:76
Definition: ActiveMQConstants.h:93
DestinationOption
These values represent the options that can be appended to an Destination name, i.e.
Definition: ActiveMQConstants.h:68
Definition: ActiveMQConstants.h:69
Definition: ActiveMQConstants.h:86
static URIParam toURIOption(const std::string &option)
Definition: ActiveMQConstants.h:116
URIParam
These values represent the parameters that can be added to the connection URI that affect the ActiveM...
Definition: ActiveMQConstants.h:84
Definition: ActiveMQConstants.h:126
Definition: ActiveMQConstants.h:92
Definition: ActiveMQConstants.h:70
Definition: ActiveMQConstants.h:89
Definition: ActiveMQConstants.h:72
Definition: ActiveMQConstants.h:91
Definition: ActiveMQConstants.h:71
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: ActiveMQConstants.h:85
DestinationActions
Definition: ActiveMQConstants.h:48
Definition: ActiveMQConstants.h:73
Definition: ActiveMQConstants.h:94
static const std::string & toString(const DestinationOption option)
Definition: ActiveMQConstants.h:98
Class holding constant values for various ActiveMQ specific things Each constant is defined as an enu...
Definition: ActiveMQConstants.h:32
static DestinationOption toDestinationOption(const std::string &option)
Definition: ActiveMQConstants.h:102