|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mactor.brokers.AbstractMessageBroker
org.mactor.brokers.PollingMessageBrokerTemplate
org.mactor.brokers.mqseries.MqSeriesMessageBroker
public class MqSeriesMessageBroker
A message broker for IBM MQ Series (add the com.ibm.mq.jar library from your version of MQ Series to the MActor classpath)
| Field Summary |
|---|
| Fields inherited from class org.mactor.brokers.PollingMessageBrokerTemplate |
|---|
log |
| Constructor Summary | |
|---|---|
MqSeriesMessageBroker(MessageBrokersConfig.MessageBrokerConfig config)
|
|
| Method Summary | |
|---|---|
protected java.util.List<Message> |
doGetMessages(java.lang.String channel,
int maxMessageCount)
Template method called to check for incoming messages (the polling interval is defined by the message broker config) |
protected void |
doPublishMessage(java.lang.String channel,
Message message)
Template method called to publish a message. |
void |
terminate()
|
| Methods inherited from class org.mactor.brokers.PollingMessageBrokerTemplate |
|---|
onFirstSubscribe, onLastSubscribe, publish, publishWithResponse |
| Methods inherited from class org.mactor.brokers.AbstractMessageBroker |
|---|
raiseOnMessage, subscribe, unsubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MqSeriesMessageBroker(MessageBrokersConfig.MessageBrokerConfig config)
| Method Detail |
|---|
public void terminate()
terminate in interface MessageBrokerterminate in class PollingMessageBrokerTemplate
protected java.util.List<Message> doGetMessages(java.lang.String channel,
int maxMessageCount)
throws MactorException
PollingMessageBrokerTemplate
doGetMessages in class PollingMessageBrokerTemplatechannel - the channelmaxMessageCount - the max number of messages to return (as defined in the
message broker config).
MactorException - if a problem occured (this will not cause the test to fail)
protected void doPublishMessage(java.lang.String channel,
Message message)
throws MactorException
PollingMessageBrokerTemplate
doPublishMessage in class PollingMessageBrokerTemplatechannel - the channelmessage - the message
MactorException - if a problem occured (this will cause the test to fail)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||