Prefetch subscriptions on app startup

This commit is contained in:
James Agnew 2018-08-22 12:48:03 -04:00
parent bbe4de2842
commit f8c03a3c37
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ public abstract class BaseSubscriptionInterceptor<S extends IBaseResource> exten
*/
@SuppressWarnings("unused")
@Scheduled(fixedDelay = 60000)
@PostConstruct
public void initSubscriptions() {
if (!myInitSubscriptionsSemaphore.tryAcquire()) {
return;