17 #ifndef _ACTIVEMQ_CORE_ACTIVEMQCONNECTIONFACTORY_H_ 18 #define _ACTIVEMQ_CORE_ACTIVEMQCONNECTIONFACTORY_H_ 35 class ActiveMQConnection;
36 class FactorySettings;
38 class RedeliveryPolicy;
48 FactorySettings* settings;
70 const std::string& username =
"",
71 const std::string& password =
"");
84 const std::string& username =
"",
85 const std::string& password =
"");
121 const std::string& password);
146 const std::string& password,
147 const std::string& clientId);
155 void setUsername(
const std::string& username);
162 const std::string& getUsername()
const;
168 void setPassword(
const std::string& password);
175 const std::string& getPassword()
const;
181 std::string getClientId()
const;
187 void setClientId(
const std::string& clientId);
195 void setBrokerURI(
const std::string& uri);
283 bool isDispatchAsync()
const;
293 void setDispatchAsync(
bool value);
300 bool isAlwaysSyncSend()
const;
307 void setAlwaysSyncSend(
bool value);
313 bool isUseAsyncSend()
const;
319 void setUseAsyncSend(
bool value);
327 bool isSendAcksAsync()
const;
336 void setSendAcksAsync(
bool sendAcksAsync);
342 bool isUseCompression()
const;
350 void setUseCompression(
bool value);
361 void setCompressionLevel(
int value);
368 int getCompressionLevel()
const;
374 unsigned int getSendTimeout()
const;
381 void setSendTimeout(
unsigned int timeout);
387 unsigned int getCloseTimeout()
const;
393 void setCloseTimeout(
unsigned int timeout);
402 unsigned int getProducerWindowSize()
const;
410 void setProducerWindowSize(
unsigned int windowSize);
416 bool isMessagePrioritySupported()
const;
425 void setMessagePrioritySupported(
bool value);
432 bool isUseRetroactiveConsumer()
const;
442 void setUseRetroactiveConsumer(
bool useRetroactiveConsumer);
449 bool isExclusiveConsumer()
const;
458 void setExclusiveConsumer(
bool exclusiveConsumer);
466 bool isWatchTopicAdvisories()
const;
475 void setWatchTopicAdvisories(
bool value);
485 int getAuditDepth()
const;
496 void setAuditDepth(
int auditDepth);
503 int getAuditMaximumProducerNumber()
const;
511 void setAuditMaximumProducerNumber(
int auditMaximumProducerNumber);
525 bool isCheckForDuplicates()
const;
540 void setCheckForDuplicates(
bool checkForDuplicates);
549 bool isTransactedIndividualAck()
const;
559 void setTransactedIndividualAck(
bool transactedIndividualAck);
567 bool isNonBlockingRedelivery()
const;
577 void setNonBlockingRedelivery(
bool nonBlockingRedelivery);
584 long long getConsumerFailoverRedeliveryWaitPeriod()
const;
592 void setConsumerFailoverRedeliveryWaitPeriod(
long long value);
597 bool isOptimizeAcknowledge()
const;
605 void setOptimizeAcknowledge(
bool optimizeAcknowledge);
612 long long getOptimizeAcknowledgeTimeOut()
const;
620 void setOptimizeAcknowledgeTimeOut(
long long optimizeAcknowledgeTimeOut);
630 long long getOptimizedAckScheduledAckInterval()
const;
641 void setOptimizedAckScheduledAckInterval(
long long optimizedAckScheduledAckInterval);
661 static cms::Connection* createConnection(
const std::string& uri,
const std::string& username,
662 const std::string& password,
const std::string& clientId =
"");
684 const std::string& password,
const std::string& clientId);
Defines the interface for a factory that creates connection objects, the Connection objects returned ...
Definition: ConnectionFactory.h:41
Interface for a RedeliveryPolicy object that controls how message Redelivery is handled in ActiveMQ-C...
Definition: RedeliveryPolicy.h:34
#define AMQCPP_API
Definition: Config.h:30
If a CMS provider detects a serious problem, it notifies the client application through an ExceptionL...
Definition: ExceptionListener.h:37
The client's connection to its provider.
Definition: Connection.h:70
Definition: ActiveMQConnectionFactory.h:40
This class represents an instance of a URI as defined by RFC 2396.
Definition: URI.h:36
Interface for a Policy object that controls message Prefetching on various destination types in Activ...
Definition: PrefetchPolicy.h:34
static const std::string DEFAULT_URI
Definition: ActiveMQConnectionFactory.h:44
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
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
Concrete connection used for all connectors to the ActiveMQ broker.
Definition: ActiveMQConnection.h:60