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 IDispatch interface 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 NotifyMe method. This is passed into the NotifyMe method 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 MsgFilter is ORAAQ_ANY . |
[in ] [optional] MsgFilter |
An Integer constant specifying the selection criteria for messages. Possible values for MsgFilter are:
|
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 MonitorStart method 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 Msgid variant 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"