private void sendQueuedNotifications(){
  Notification n;
  while ((n=pendingNotifs.poll()) != null) {
    broadcaster.sendNotification(n);
  }
}

private void sendQueuedNotifications ( ) { Notification n ; while ( ( n = pendingNotifs . poll ( ) ) != null ) { broadcaster . sendNotification ( n ) ; } }
send all notifications present in the queue .
