Package org.apache.activemq
Interface Closeable
-
- All Known Subinterfaces:
EnhancedConnection
- All Known Implementing Classes:
ActiveMQConnection,ActiveMQMessageProducer,ActiveMQMessageProducerSupport,ActiveMQQueueSender,ActiveMQTopicPublisher,ActiveMQXAConnection,PooledConnection
public interface CloseableProvides a uniform interface that can be used to close all the JMS obejcts that provide a close() method. Useful for when you want to collect a heterogeous set of JMS object in a collection to be closed at a later time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes a JMS object.
-
-
-
Method Detail
-
close
void close() throws JMSExceptionCloses a JMS object.Many JMS objects are closeable such as Connections, Sessions, Consumers and Producers.
- Throws:
JMSException- if the JMS provider fails to close the object due to some internal error.
-
-