/** * Handle the event CompleteRequestListComponentRegisteredNotificationEvent * * @param event */ public void handleCompleteRequestListComponentRegisteredNotificationEvent( CompleteRequestListComponentRegisteredNotificationEvent event) { try { CopyOnWriteArrayList<PlatformComponentProfile> remotePlatformComponentProfileRegisteredList = new CopyOnWriteArrayList<>(); remotePlatformComponentProfileRegisteredList.addAllAbsent(event.getRegisteredComponentList()); onReceivePlatformComponentProfileRegisteredList(remotePlatformComponentProfileRegisteredList); } catch (Exception e) { e.printStackTrace(); } }
public int addAllAbsent(final Collection c) { return copyOnWriteArrayList.addAllAbsent(c); }
@Override public void handleCompleteRequestListComponentRegisteredNotificationEvent( List<PlatformComponentProfile> platformComponentProfileRegisteredList) { remoteNetworkServicesRegisteredList.addAllAbsent(platformComponentProfileRegisteredList); }