| Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E17727-03 | 
 | 
| 
 | PDF · Mobi · ePub | 
Starts a monitor thread for dequeuing the messages specified.
Q.MonitorStart NotificationHandler, CallbackCtx, MsgFilterVal,MsgFilter
The arguments for the method are:
| Arguments | Description | 
|---|---|
| [ in]NotificationHandler | An IDispatchinterface containing the callback method (NotifyMe) which should be notified of new messages. | 
| [ in]CallbackCtx | Context-specific information that the application wants to pass to the NotifyMemethod. This is passed into theNotifyMemethod whenever a new message satisfying the user criteria is dequeued. | 
| [ in] [optional]MsgFilterVal | A byte array containing a value for the message filter. Ignored if MsgFilterisORAAQ_ANY. | 
| [ in] [optional]MsgFilter | An Integerconstant specifying the selection criteria for messages. Possible values forMsgFilterare:
 | 
NotifyMe is the callback method of the notification object. The syntax of the method is:
Public Sub NotifyMe (ByVal Ctx As Variant, ByVal Msgid As Variant)
| Variants | Description | 
|---|---|
| [in]Ctx | Value passed into the MonitorStartmethod by the application. Context-sensitive information that the application wants to pass in when messages are dequeued. | 
| [in]Msgid | The message ID of the newly dequeued message. The Msgidvariant is null when there is an error while monitoring. | 
By default, the message is passed into NotifyMe in Remove mode. The default dequeue options can be overridden by setting the properties of this instance (OraAQ).
The MonitorStart method returns ORAAQ_SUCCESS or ORAAQ_FAIL.
See Also:
"Monitoring Messages"