18 #ifndef _ACTIVEMQ_CORE_ACTIVEMQCONNECTION_H_ 19 #define _ACTIVEMQ_CORE_ACTIVEMQCONNECTION_H_ 49 class ActiveMQSession;
50 class ConnectionConfig;
52 class RedeliveryPolicy;
64 ConnectionConfig* config;
69 std::auto_ptr<cms::ConnectionMetaData> connectionMetaData;
182 return this->closed.
get();
190 return this->started.
get();
198 return this->transportFailed.
get();
269 return connectionMetaData.get();
280 virtual std::string getClientID()
const;
285 virtual void setClientID(
const std::string& clientID);
295 virtual void close();
300 virtual void start();
338 void setUsername(
const std::string& username);
345 const std::string& getUsername()
const;
351 void setPassword(
const std::string& password);
358 const std::string& getPassword()
const;
364 void setDefaultClientId(
const std::string& clientId);
371 void setBrokerURL(
const std::string& brokerURL);
378 const std::string& getBrokerURL()
const;
417 bool isDispatchAsync()
const;
427 void setDispatchAsync(
bool value);
434 bool isAlwaysSyncSend()
const;
441 void setAlwaysSyncSend(
bool value);
447 bool isUseAsyncSend()
const;
453 void setUseAsyncSend(
bool value);
459 bool isUseCompression()
const;
467 void setUseCompression(
bool value);
478 void setCompressionLevel(
int value);
485 int getCompressionLevel()
const;
491 unsigned int getSendTimeout()
const;
498 void setSendTimeout(
unsigned int timeout);
504 unsigned int getCloseTimeout()
const;
510 void setCloseTimeout(
unsigned int timeout);
519 unsigned int getProducerWindowSize()
const;
527 void setProducerWindowSize(
unsigned int windowSize);
533 bool isMessagePrioritySupported()
const;
542 void setMessagePrioritySupported(
bool value);
548 long long getNextTempDestinationId();
554 long long getNextLocalTransactionId();
562 bool isWatchTopicAdvisories()
const;
571 void setWatchTopicAdvisories(
bool value);
581 int getAuditDepth()
const;
592 void setAuditDepth(
int auditDepth);
599 int getAuditMaximumProducerNumber()
const;
607 void setAuditMaximumProducerNumber(
int auditMaximumProducerNumber);
621 bool isCheckForDuplicates()
const;
636 void setCheckForDuplicates(
bool checkForDuplicates);
645 bool isTransactedIndividualAck()
const;
655 void setTransactedIndividualAck(
bool transactedIndividualAck);
663 bool isNonBlockingRedelivery()
const;
673 void setNonBlockingRedelivery(
bool nonBlockingRedelivery);
680 long long getConsumerFailoverRedeliveryWaitPeriod()
const;
688 void setConsumerFailoverRedeliveryWaitPeriod(
long long value);
693 bool isOptimizeAcknowledge()
const;
701 void setOptimizeAcknowledge(
bool optimizeAcknowledge);
708 long long getOptimizeAcknowledgeTimeOut()
const;
716 void setOptimizeAcknowledgeTimeOut(
long long optimizeAcknowledgeTimeOut);
726 long long getOptimizedAckScheduledAckInterval()
const;
737 void setOptimizedAckScheduledAckInterval(
long long optimizedAckScheduledAckInterval);
744 bool isUseRetroactiveConsumer()
const;
754 void setUseRetroactiveConsumer(
bool useRetroactiveConsumer);
761 bool isExclusiveConsumer()
const;
770 void setExclusiveConsumer(
bool exclusiveConsumer);
778 bool isSendAcksAsync()
const;
787 void setSendAcksAsync(
bool sendAcksAsync);
830 virtual void transportInterrupted();
835 virtual void transportResumed();
875 std::string getResourceManagerId()
const;
935 void setTransportInterruptionProcessingComplete();
973 void checkClosed()
const;
980 void checkClosedOrFailed()
const;
985 void ensureConnectionInfoSent();
1027 void cleanUpTempDestinations();
1045 void disconnect(
long long lastDeliveredSequenceId);
1048 void waitForTransportInterruptionProcessingToComplete();
1051 void signalInterruptionProcessingComplete();
bool isTransportFailed() const
Checks if the Connection's Transport has failed.
Definition: ActiveMQConnection.h:197
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
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:181
Interface for a transport layer for command objects.
Definition: Transport.h:59
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
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: Exception.h:38
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
virtual const cms::ConnectionMetaData * getMetaData() const
Gets the metadata for this connection.the connection MetaData pointer ( caller does not own it )...
Definition: ActiveMQConnection.h:268
An enhanced CMS Connection instance that provides additional features above the default required feat...
Definition: EnhancedConnection.h:33
bool get() const
Gets the current value of this AtomicBoolean.
Definition: AtomicBoolean.h:63
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
bool isStarted() const
Check if this connection has been started.
Definition: ActiveMQConnection.h:189
Concrete connection used for all connectors to the ActiveMQ broker.
Definition: ActiveMQConnection.h:60
A listener of asynchronous exceptions from a command transport object.
Definition: TransportListener.h:38
Definition: ActiveMQDestination.h:38