Esempio n. 1
0
 private void fireQueuePositionEvent(int currentPosition) {
   synchronized (queueListeners) {
     for (Iterator<QueueListener> i = queueListeners.iterator(); i.hasNext(); ) {
       QueueListener listener = i.next();
       listener.queuePositionUpdated(currentPosition);
     }
   }
 }
Esempio n. 2
0
 private void fireQueueTimeEvent(int secondsRemaining) {
   synchronized (queueListeners) {
     for (Iterator<QueueListener> i = queueListeners.iterator(); i.hasNext(); ) {
       QueueListener listener = i.next();
       listener.queueWaitTimeUpdated(secondsRemaining);
     }
   }
 }
Esempio n. 3
0
 private void fireQueueDepartedEvent() {
   synchronized (queueListeners) {
     for (Iterator<QueueListener> i = queueListeners.iterator(); i.hasNext(); ) {
       QueueListener listener = i.next();
       listener.departedQueue();
     }
   }
 }