|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.service.impl.DispatcherImpl
A dispatcher of messages to some JMS connection.
Typically this uses either IO or NIO to shovel the messages down a socket as fast as possible - in either a push or pull way.
| Constructor Summary | |
DispatcherImpl()
|
|
| Method Summary | |
void |
addActiveSubscription(BrokerClient client,
Subscription sub)
Add an active subscription |
void |
register(MessageContainerManager mcm)
Register the MessageContainerManager for the Dispatcher |
void |
removeActiveSubscription(BrokerClient client,
Subscription sub)
remove an active subscription |
void |
start()
start the DispatchWorker |
void |
stop()
stop the DispatchWorker |
void |
wakeup()
Called to indicate that there is work to do this will wake up a Dispatch Worker if it is waiting for messages to dispatch |
void |
wakeup(Subscription sub)
Called to indicate that there is work to do on a Subscription this will wake up a Dispatch Worker if it is waiting for messages to dispatch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DispatcherImpl()
| Method Detail |
public void register(MessageContainerManager mcm)
register in interface Dispatchermcm - public void wakeup(Subscription sub)
wakeup in interface Dispatchersub - the Subscription that now has messages to dispatchpublic void wakeup()
wakeup in interface Dispatcher
public void addActiveSubscription(BrokerClient client,
Subscription sub)
addActiveSubscription in interface Dispatcherclient - sub -
public void removeActiveSubscription(BrokerClient client,
Subscription sub)
removeActiveSubscription in interface Dispatcherclient - sub - public void start()
start in interface ServiceService.start()public void stop()
stop in interface ServiceService.stop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||