activemq-cpp-3.4.0

cms::Closeable Class Reference

Interface for a class that implements the close method. More...

#include <src/main/cms/Closeable.h>

Inheritance diagram for cms::Closeable:

Public Member Functions

virtual ~Closeable () throw ()
virtual void close ()=0
 Closes this object and deallocates the appropriate resources.

Detailed Description

Interface for a class that implements the close method.

A class that implements this interface should release all resources upon the close call and should throw an exception from any methods that require those resources after they have been closed.

Since:
1.0

Constructor & Destructor Documentation

virtual cms::Closeable::~Closeable ( ) throw () [virtual]

Member Function Documentation

virtual void cms::Closeable::close ( ) [pure virtual]

Closes this object and deallocates the appropriate resources.

The object is generally no longer usable after calling close.

Exceptions:
CMSException- If an error occurs while the resource is being closed.

Implemented in activemq::cmsutil::CachedConsumer, activemq::cmsutil::CachedProducer, activemq::cmsutil::PooledSession, activemq::commands::ActiveMQTempDestination, activemq::core::ActiveMQConnection, activemq::core::ActiveMQConsumer, activemq::core::ActiveMQProducer, activemq::core::ActiveMQQueueBrowser, activemq::core::ActiveMQSession, cms::Connection, and cms::Session.


The documentation for this class was generated from the following file: