17#ifndef _CMS_CONNECTIONFACTORY_H_
18#define _CMS_CONNECTIONFACTORY_H_
Defines the interface for a factory that creates connection objects, the Connection objects returned ...
Definition ConnectionFactory.h:41
virtual void setExceptionListener(cms::ExceptionListener *listener)=0
Set an ExceptionListener instance that is passed on to all Connection objects created from this Conne...
virtual cms::ExceptionListener * getExceptionListener() const =0
Gets the currently configured ExceptionListener for this ConnectionFactory.
virtual void setMessageTransformer(cms::MessageTransformer *transformer)=0
Set an MessageTransformer instance that is passed on to all Connection objects created from this Conn...
virtual ~ConnectionFactory()
virtual cms::MessageTransformer * getMessageTransformer() const =0
Gets the currently configured MessageTransformer for this ConnectionFactory.
virtual cms::Connection * createConnection(const std::string &username, const std::string &password)=0
Creates a connection with the default specified identity.
virtual cms::Connection * createConnection()=0
Creates a connection with the default user identity.
virtual cms::Connection * createConnection(const std::string &username, const std::string &password, const std::string &clientId)=0
Creates a connection with the specified user identity.
static cms::ConnectionFactory * createCMSConnectionFactory(const std::string &brokerURI)
Static method that is used to create a provider specific connection factory.
The client's connection to its provider.
Definition Connection.h:70
If a CMS provider detects a serious problem, it notifies the client application through an ExceptionL...
Definition ExceptionListener.h:37
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23