18 #ifndef _ACTIVEMQ_CORE_ACTIVEMQCONNECTION_H_
19 #define _ACTIVEMQ_CORE_ACTIVEMQCONNECTION_H_
50 class ActiveMQSession;
51 class ConnectionConfig;
53 class RedeliveryPolicy;
65 ConnectionConfig* config;
70 std::auto_ptr<cms::ConnectionMetaData> connectionMetaData;
183 return this->closed.get();
191 return this->started.get();
199 return this->transportFailed.get();
270 void removeAuditedDispatcher(
Dispatcher* dispatcher);
278 return connectionMetaData.get();
289 virtual std::string getClientID()
const;
294 virtual void setClientID(
const std::string& clientID);
304 virtual void close();
309 virtual void start();
347 void setUsername(
const std::string& username);
354 const std::string& getUsername()
const;
360 void setPassword(
const std::string& password);
367 const std::string& getPassword()
const;
373 void setDefaultClientId(
const std::string& clientId);
380 void setBrokerURL(
const std::string& brokerURL);
387 const std::string& getBrokerURL()
const;
426 bool isDispatchAsync()
const;
436 void setDispatchAsync(
bool value);
443 bool isAlwaysSyncSend()
const;
450 void setAlwaysSyncSend(
bool value);
456 bool isUseAsyncSend()
const;
462 void setUseAsyncSend(
bool value);
468 bool isUseCompression()
const;
476 void setUseCompression(
bool value);
487 void setCompressionLevel(
int value);
494 int getCompressionLevel()
const;
500 unsigned int getSendTimeout()
const;
507 void setSendTimeout(
unsigned int timeout);
513 unsigned int getConnectResponseTimeout()
const;
521 void setConnectResponseTimeout(
unsigned int connectResponseTimeout);
527 unsigned int getCloseTimeout()
const;
533 void setCloseTimeout(
unsigned int timeout);
542 unsigned int getProducerWindowSize()
const;
550 void setProducerWindowSize(
unsigned int windowSize);
556 bool isMessagePrioritySupported()
const;
565 void setMessagePrioritySupported(
bool value);
571 long long getNextTempDestinationId();
577 long long getNextLocalTransactionId();
585 bool isWatchTopicAdvisories()
const;
594 void setWatchTopicAdvisories(
bool value);
604 int getAuditDepth()
const;
615 void setAuditDepth(
int auditDepth);
622 int getAuditMaximumProducerNumber()
const;
630 void setAuditMaximumProducerNumber(
int auditMaximumProducerNumber);
644 bool isCheckForDuplicates()
const;
659 void setCheckForDuplicates(
bool checkForDuplicates);
668 bool isTransactedIndividualAck()
const;
678 void setTransactedIndividualAck(
bool transactedIndividualAck);
686 bool isNonBlockingRedelivery()
const;
696 void setNonBlockingRedelivery(
bool nonBlockingRedelivery);
703 long long getConsumerFailoverRedeliveryWaitPeriod()
const;
711 void setConsumerFailoverRedeliveryWaitPeriod(
long long value);
716 bool isOptimizeAcknowledge()
const;
724 void setOptimizeAcknowledge(
bool optimizeAcknowledge);
731 long long getOptimizeAcknowledgeTimeOut()
const;
739 void setOptimizeAcknowledgeTimeOut(
long long optimizeAcknowledgeTimeOut);
749 long long getOptimizedAckScheduledAckInterval()
const;
760 void setOptimizedAckScheduledAckInterval(
long long optimizedAckScheduledAckInterval);
767 bool isUseRetroactiveConsumer()
const;
777 void setUseRetroactiveConsumer(
bool useRetroactiveConsumer);
784 bool isExclusiveConsumer()
const;
793 void setExclusiveConsumer(
bool exclusiveConsumer);
801 bool isSendAcksAsync()
const;
810 void setSendAcksAsync(
bool sendAcksAsync);
815 bool isAlwaysSessionAsync()
const;
823 void setAlwaysSessionAsync(
bool alwaysSessionAsync);
828 bool isConsumerExpiryCheckEnabled();
837 void setConsumerExpiryCheckEnabled(
bool consumerExpiryCheckEnabled);
842 int getProtocolVersion()
const;
885 virtual void transportInterrupted();
890 virtual void transportResumed();
930 std::string getResourceManagerId()
const;
990 void setTransportInterruptionProcessingComplete();
1029 void checkClosed()
const;
1036 void checkClosedOrFailed()
const;
1041 void ensureConnectionInfoSent();
1083 void cleanUpTempDestinations();
1109 void disconnect(
long long lastDeliveredSequenceId);
1112 void waitForTransportInterruptionProcessingToComplete();
1115 void signalInterruptionProcessingComplete();
Interface for a RedeliveryPolicy object that controls how message Redelivery is handled in ActiveMQ-C...
Definition: RedeliveryPolicy.h:34
Definition: ConnectionInfo.h:49
A Destination object encapsulates a provider-specific address.
Definition: Destination.h:39
#define AMQCPP_API
Definition: Config.h:30
AcknowledgeMode
Definition: Session.h:108
Asynchronous event interface for CMS asynchronous operations.
Definition: AsyncCallback.h:37
bool isStarted() const
Check if this connection has been started.
Definition: ActiveMQConnection.h:190
Definition: ConnectionId.h:51
An Executor that provides methods to manage termination and methods that can produce a Future for tra...
Definition: ExecutorService.h:56
If a CMS provider detects a serious problem, it notifies the client application through an ExceptionL...
Definition: ExceptionListener.h:37
bool isClosed() const
Checks if this connection has been closed.
Definition: ActiveMQConnection.h:182
bool isTransportFailed() const
Checks if the Connection's Transport has failed.
Definition: ActiveMQConnection.h:198
Interface for a transport layer for command objects.
Definition: Transport.h:60
A Session object is a single-threaded context for producing and consuming messages.
Definition: Session.h:105
Definition: ConsumerInfo.h:51
A boolean value that may be updated atomically.
Definition: AtomicBoolean.h:34
Interface for a Policy object that controls message Prefetching on various destination types in Activ...
Definition: PrefetchPolicy.h:34
Definition: ActiveMQException.h:35
virtual const cms::ConnectionMetaData * getMetaData() const
Gets the metadata for this connection.the connection MetaData pointer ( caller does not own it )...
Definition: ActiveMQConnection.h:277
Definition: ArrayList.h:39
Definition: Exception.h:38
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
An enhanced CMS Connection instance that provides additional features above the default required feat...
Definition: EnhancedConnection.h:33
Interface for an object responsible for dispatching messages to consumers.
Definition: Dispatcher.h:32
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
Provides an object that will provide a snapshot view of Destinations that exist on the Message provid...
Definition: DestinationSource.h:38
Concrete connection used for all connectors to the ActiveMQ broker.
Definition: ActiveMQConnection.h:61
A listener of asynchronous exceptions from a command transport object.
Definition: TransportListener.h:38
Definition: ActiveMQDestination.h:38