activemq-cpp-3.4.0
|
Interface for a class that implements the close method. More...
#include <src/main/cms/Closeable.h>
Public Member Functions | |
virtual | ~Closeable () throw () |
virtual void | close ()=0 |
Closes this object and deallocates the appropriate resources. |
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.
virtual cms::Closeable::~Closeable | ( | ) | throw () [virtual] |
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.
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.