Ejemplo 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);
     }
   }
 }
Ejemplo 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);
     }
   }
 }
Ejemplo n.º 3
0
 private void fireQueueDepartedEvent() {
   synchronized (queueListeners) {
     for (Iterator<QueueListener> i = queueListeners.iterator(); i.hasNext(); ) {
       QueueListener listener = i.next();
       listener.departedQueue();
     }
   }
 }