Hi developers,
I thought about a nice new feature of live API: An event for QueueListener
which will be generated, if a call (channel) reaches the queue's service
level (and maybe the timeout, a optional setting in queues.conf). How do you
think about it?
Here is my implementation approach:
0. Queue has a private Map with <Channel, Timer>
1a. When a channel enters a queue: Add a Timer (key is channel) to Map.
TimerTask notifies Queue if SL exceeded. Delay of Timer is the queue service
level.
1b. Server notify all Listeners and send the channel wich exceeded.
2. When channel leaves the queue, stop timer and remove it
Regards
Patrick
--
Patrick Breucking <bre...@GO...> (System Engineer)
* GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg
* Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278
* http://www.GONICUS.de
*Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg
*Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder
*Vorsitzender des Beirats: Juergen Michels
*Amtsgericht Arnsberg * HRB 1968
|