@API
public interface MessageReceiver
| Modifier and Type | Method and Description |
|---|---|
int |
getMatchOptions(com.ibm.mq.MQMessage msg)
Initializes the message for matching and return the MQ match options.
|
void |
onMessage(com.ibm.mq.MQMessage message)
Called when a new message appears.
|
void |
setGetMessageOptions(com.ibm.mq.MQGetMessageOptions opts)
Allows specifying special MQ options for get operations.
|
void onMessage(com.ibm.mq.MQMessage message)
throws java.lang.Exception
message - The message to handlejava.lang.Exceptionvoid setGetMessageOptions(com.ibm.mq.MQGetMessageOptions opts)
opts - int getMatchOptions(com.ibm.mq.MQMessage msg)
Returning a negative value means "use MQ default match options".
msg - The message itself