|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jms.activemq.BrokerManager
public class BrokerManager
Manages the connection to the local ActiveMQ broker.
Note: BrokerManager is intended
to allow concurrent access. start() and stop
are synchronized on the consumer register.
| Constructor Summary | |
|---|---|
BrokerManager(org.apache.activemq.broker.BrokerService broker,
org.apache.commons.logging.Log log)
|
|
| Method Summary | |
|---|---|
void |
consumeQueue(MailConsumer consumer,
MailBuilder builder,
java.lang.String destination)
Sets the consumer as the listener for the queue with the given name. |
void |
start()
|
void |
stop()
|
void |
subscribeToTopic(MailConsumer consumer,
MailBuilder builder,
java.lang.String destination)
Subscribes the consumer to the topic with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrokerManager(org.apache.activemq.broker.BrokerService broker,
org.apache.commons.logging.Log log)
| Method Detail |
|---|
public void start()
throws javax.jms.JMSException
javax.jms.JMSException
public void stop()
throws javax.jms.JMSException
javax.jms.JMSException
public void consumeQueue(MailConsumer consumer,
MailBuilder builder,
java.lang.String destination)
throws javax.jms.JMSException
consumer - MailConsumer, not nullbuilder - MailBuilder, not nulldestination - name of the destination queue, not null
javax.jms.JMSException
public void subscribeToTopic(MailConsumer consumer,
MailBuilder builder,
java.lang.String destination)
throws javax.jms.JMSException
consumer - MailConsumer, not nullbuilder - MailBuilder, not nulldestination - name of the destination queue, not null
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||