protected void processUpdates(Queue<DeviceUpdate> updates){
  if (updates == null)   return;
  DeviceUpdate update=null;
  while (null != (update=updates.poll())) {
    if (logger.isTraceEnabled()) {
      logger.trace("Dispatching device update: {}",update);
    }
    if (update.change == DeviceUpdate.Change.DELETE) {
      deviceSyncManager.removeDevice(update.device);
    }
 else {
      deviceSyncManager.storeDevice(update.device);
    }
    List<IDeviceListener> listeners=deviceListeners.getOrderedListeners();
    notifyListeners(listeners,update);
  }
}

protected void processUpdates ( Queue < DeviceUpdate > updates ) { if ( updates == null ) return ; DeviceUpdate update = null ; while ( null != ( update = updates . poll ( ) ) ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( "Dispatching device update: {}" , update ) ; } if ( update . change == DeviceUpdate . Change . DELETE ) { deviceSyncManager . removeDevice ( update . device ) ; } else { deviceSyncManager . storeDevice ( update . device ) ; } List < IDeviceListener > listeners = deviceListeners . getOrderedListeners ( ) ; notifyListeners ( listeners , update ) ; } }
send update notifications to listeners
