Browse Source

lower syncRequests cache threshold

tags/v0.1.8
Jonathan Cobb 4 years ago
parent
commit
8788720e60
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bubble-server/src/main/java/bubble/service/notify/NotificationService.java

+ 2
- 2
bubble-server/src/main/java/bubble/service/notify/NotificationService.java View File

@@ -139,8 +139,8 @@ public class NotificationService {
return null;
}

private final Map<String, SynchronousNotification> syncRequests = new ExpirationMap<>(SECONDS.toMillis(160));
private final Map<String, SynchronousNotification> syncRequestCache = new ExpirationMap<>(SECONDS.toMillis(150));
private final Map<String, SynchronousNotification> syncRequests = new ExpirationMap<>(SECONDS.toMillis(20));
private final Map<String, SynchronousNotification> syncRequestCache = new ExpirationMap<>(SECONDS.toMillis(15));

public <T> T notifySync(BubbleNode delegate, NotificationType type, SynchronousNotification notification) {
final String cacheKey = notification.getCacheKey(delegate, type);


Loading…
Cancel
Save