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();
247 return connectionMetaData.get();
258 virtual std::string getClientID()
const;
263 virtual void setClientID(
const std::string& clientID);
273 virtual void close();
278 virtual void start();
311 void setUsername(
const std::string& username);
318 const std::string& getUsername()
const;
324 void setPassword(
const std::string& password);
331 const std::string& getPassword()
const;
337 void setDefaultClientId(
const std::string& clientId);
344 void setBrokerURL(
const std::string& brokerURL);
351 const std::string& getBrokerURL()
const;
390 bool isDispatchAsync()
const;
400 void setDispatchAsync(
bool value);
407 bool isAlwaysSyncSend()
const;
414 void setAlwaysSyncSend(
bool value);
420 bool isUseAsyncSend()
const;
426 void setUseAsyncSend(
bool value);
432 bool isUseCompression()
const;
440 void setUseCompression(
bool value);
451 void setCompressionLevel(
int value);
458 int getCompressionLevel()
const;
464 unsigned int getSendTimeout()
const;
471 void setSendTimeout(
unsigned int timeout);
477 unsigned int getCloseTimeout()
const;
483 void setCloseTimeout(
unsigned int timeout);
492 unsigned int getProducerWindowSize()
const;
500 void setProducerWindowSize(
unsigned int windowSize);
506 bool isMessagePrioritySupported()
const;
515 void setMessagePrioritySupported(
bool value);
521 long long getNextTempDestinationId();
527 long long getNextLocalTransactionId();
535 bool isWatchTopicAdvisories()
const;
544 void setWatchTopicAdvisories(
bool value);
587 virtual void transportInterrupted();
592 virtual void transportResumed();
632 std::string getResourceManagerId()
const;
692 void setTransportInterruptionProcessingComplete();
730 void checkClosed()
const;
737 void checkClosedOrFailed()
const;
742 void ensureConnectionInfoSent();
784 void cleanUpTempDestinations();
802 void disconnect(
long long lastDeliveredSequenceId);
805 void waitForTransportInterruptionProcessingToComplete();
808 void signalInterruptionProcessingComplete();