1

Topic: dbms_alert Inquiry Intervals

Explain, please, here this paragraph
[quote =] WAITANY procedure. If you use the WAITANY procedure, and if a signaling session does a signal but does not commit within one second of the signal, a polling loop is required so that this uncommitted alert does not camouflage other alerts. The polling loop begins at an one second interval and exponentially backs off to 30-second intervals.

I correctly understand that here is said that by call WAITANY on the server the flow interrogates presence of events, through certain intervals. And if I caused WAITANY with big enough  at event origin to me the notification message only after the outflow of a current interval of request comes? I.e. on the server it is fulfilled about such code

function WaitAny (ATimeout) {
const intervals = [0, 1....., 30);
for (i = 0; i <intervals.length; i ++) {
Sleep (min (intervals [i], ATimeout))
if (IsExistsEvents ())
return 0;
ATimeout - = intervals [i];
if (ATimeout <= 0)
return 1;
}
maxInterval = intervals [intervals.length - 1];
while (ATimeout> 0) {
Sleep (min (maxInterval, ATimeout))
if (IsExistsEvents ())
return 0;
ATimeout - = maxInterval;
}
return 1;
}

Yours faithfully, Vasilisk