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