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,
62 ACK_TYPE_UNMATCHED = 5,
102 return StaticInitializer::destOptions[option];
106 std::map<std::string, DestinationOption>::iterator iter = StaticInitializer::destOptionMap.find(option);
108 if (iter == StaticInitializer::destOptionMap.end()) {
116 return StaticInitializer::uriParams[option];
120 std::map<std::string, URIParam>::iterator iter = StaticInitializer::uriParamsMap.find(option);
122 if (iter == StaticInitializer::uriParamsMap.end()) {
134 static std::string destOptions[NUM_OPTIONS];
135 static std::string uriParams[NUM_PARAMS];
#define AMQCPP_API
Definition: Config.h:30
Definition: ActiveMQConstants.h:129
virtual ~StaticInitializer()
Definition: ActiveMQConstants.h:132
static std::map< std::string, DestinationOption > destOptionMap
Definition: ActiveMQConstants.h:136
static std::map< std::string, URIParam > uriParamsMap
Definition: ActiveMQConstants.h:137
Class holding constant values for various ActiveMQ specific things Each constant is defined as an enu...
Definition: ActiveMQConstants.h:32
DestinationOption
These values represent the options that can be appended to an Destination name, i....
Definition: ActiveMQConstants.h:70
@ CONSUMER_DISPATCHASYNC
Definition: ActiveMQConstants.h:74
@ CUNSUMER_MAXPENDINGMSGLIMIT
Definition: ActiveMQConstants.h:72
@ CONSUMER_EXCLUSIVE
Definition: ActiveMQConstants.h:77
@ CONSUMER_PRIORITY
Definition: ActiveMQConstants.h:78
@ CONSUMER_NOLOCAL
Definition: ActiveMQConstants.h:73
@ CONSUMER_SELECTOR
Definition: ActiveMQConstants.h:76
@ CONSUMER_PREFECTCHSIZE
Definition: ActiveMQConstants.h:71
@ CONSUMER_RETROACTIVE
Definition: ActiveMQConstants.h:75
static const std::string & toString(const URIParam option)
Definition: ActiveMQConstants.h:115
AckType
Definition: ActiveMQConstants.h:55
static DestinationOption toDestinationOption(const std::string &option)
Definition: ActiveMQConstants.h:105
static const std::string & toString(const DestinationOption option)
Definition: ActiveMQConstants.h:101
static URIParam toURIOption(const std::string &option)
Definition: ActiveMQConstants.h:119
TransactionState
Definition: ActiveMQConstants.h:36
DestinationActions
Definition: ActiveMQConstants.h:48
URIParam
These values represent the parameters that can be added to the connection URI that affect the ActiveM...
Definition: ActiveMQConstants.h:86
@ CONNECTION_SENDTIMEOUT
Definition: ActiveMQConstants.h:87
@ CONNECTION_DISPATCHASYNC
Definition: ActiveMQConstants.h:93
@ CONNECTION_CLOSETIMEOUT
Definition: ActiveMQConstants.h:89
@ CONNECTION_ALWAYSSYNCSEND
Definition: ActiveMQConstants.h:90
@ PARAM_CLIENTID
Definition: ActiveMQConstants.h:96
@ CONNECTION_USECOMPRESSION
Definition: ActiveMQConstants.h:92
@ PARAM_PASSWORD
Definition: ActiveMQConstants.h:95
@ CONNECTION_CONNECTRESPONSETIMEOUT
Definition: ActiveMQConstants.h:97
@ CONNECTION_PRODUCERWINDOWSIZE
Definition: ActiveMQConstants.h:88
@ PARAM_USERNAME
Definition: ActiveMQConstants.h:94
@ CONNECTION_USEASYNCSEND
Definition: ActiveMQConstants.h:91
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: CachedConsumer.h:24