18#ifndef _CMS_CONNECTION_H_
19#define _CMS_CONNECTION_H_
Interface for a class that implements the close method.
Definition Closeable.h:35
The client's connection to its provider.
Definition Connection.h:70
virtual void close()=0
Closes this connection as well as any Sessions created from it (and those Sessions' consumers and pro...
virtual cms::MessageTransformer * getMessageTransformer() const =0
Gets the currently configured MessageTransformer for this Connection.
virtual Session * createSession(Session::AcknowledgeMode ackMode)=0
Creates a new Session to work for this Connection using the specified acknowledgment mode.
virtual void setClientID(const std::string &clientID)=0
Sets the client identifier for this connection.
virtual const ConnectionMetaData * getMetaData() const =0
Gets the metadata for this connection.
virtual void setMessageTransformer(cms::MessageTransformer *transformer)=0
Set an MessageTransformer instance that is passed on to all Session objects created from this Connect...
virtual std::string getClientID() const =0
Get the Client Id for this session, the client Id is provider specific and is either assigned by the ...
virtual Session * createSession()=0
Creates an AUTO_ACKNOWLEDGE Session.
virtual ExceptionListener * getExceptionListener() const =0
Gets the registered Exception Listener for this connection.
virtual void setExceptionListener(ExceptionListener *listener)=0
Sets the registered Exception Listener for this connection.
If a CMS provider detects a serious problem, it notifies the client application through an ExceptionL...
Definition ExceptionListener.h:37
A Session object is a single-threaded context for producing and consuming messages.
Definition Session.h:105
AcknowledgeMode
Definition Session.h:108
Interface for a class that implements the start method.
Definition Startable.h:36
Interface for a class that implements the stop method.
Definition Stoppable.h:36
#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