todo
This commit is contained in:
parent
812386c4c5
commit
5327d13502
1 changed files with 5 additions and 1 deletions
|
@ -52,10 +52,14 @@ public class SEBClientNotificationServiceImpl implements SEBClientNotificationSe
|
|||
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
|
||||
public Boolean hasAnyPendingNotification(final Long clientConnectionId) {
|
||||
|
||||
if (this.pendingNotifications.add(clientConnectionId)) {
|
||||
if (this.pendingNotifications.contains(clientConnectionId)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue