This commit is contained in:
anhefti 2021-06-16 17:30:23 +02:00
parent 812386c4c5
commit 5327d13502

View file

@ -52,10 +52,14 @@ public class SEBClientNotificationServiceImpl implements SEBClientNotificationSe
this.sebClientInstructionService = sebClientInstructionService; this.sebClientInstructionService = sebClientInstructionService;
} }
// TODO find a better (faster) way to update pending notifications
// get them all at certain interval with background update for example
// or update them all on every monitoring call
@Override @Override
public Boolean hasAnyPendingNotification(final Long clientConnectionId) { public Boolean hasAnyPendingNotification(final Long clientConnectionId) {
if (this.pendingNotifications.add(clientConnectionId)) { if (this.pendingNotifications.contains(clientConnectionId)) {
return true; return true;
} }