cms::Connection Class Reference

Inheritance diagram for cms::Connection:

Inheritance graph
[legend]
Collaboration diagram for cms::Connection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Connection ()
virtual void close ()=0 throw ( CMSException )
virtual SessioncreateSession ()=0 throw ( CMSException )
virtual SessioncreateSession (Session::AcknowledgeMode ackMode)=0 throw ( CMSException )
virtual std::string getClientID () const=0
virtual ExceptionListenergetExceptionListener () const=0
virtual void setExceptionListener (ExceptionListener *listener)=0

Constructor & Destructor Documentation

virtual cms::Connection::~Connection (  )  [inline, virtual]


Member Function Documentation

virtual void cms::Connection::close (  )  throw ( CMSException ) [pure virtual]

Closes this connection as well as any Sessions created from it (and those Sessions' consumers and producers).

Exceptions:
CMSException 

Implements cms::Closeable.

virtual Session* cms::Connection::createSession (  )  throw ( CMSException ) [pure virtual]

Creates an AUTO_ACKNOWLEDGE Session.

Exceptions:
CMSException 

virtual Session* cms::Connection::createSession ( Session::AcknowledgeMode  ackMode  )  throw ( CMSException ) [pure virtual]

Creates a new Session to work for this Connection using the specified acknowledgment mode

Parameters:
the Acknowledgement Mode to use.
Exceptions:
CMSException 

virtual std::string cms::Connection::getClientID (  )  const [pure virtual]

Get the Client Id for this session

Returns:
Client Id String

virtual ExceptionListener* cms::Connection::getExceptionListener (  )  const [pure virtual]

Gets the registered Exception Listener for this connection

Returns:
pointer to an exception listnener or NULL

virtual void cms::Connection::setExceptionListener ( ExceptionListener listener  )  [pure virtual]

Sets the registed Exception Listener for this connection

Parameters:
pointer to and ExceptionListener


Generated on Fri Jun 1 07:20:17 2007 for CMS by  doxygen 1.5.1-p1