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