4950515253545556
} @Override public void run() { //Update all cacheables for all services. this.updatesCachesTask = new UpdateCachesTask(cacheables,services); this.updatesCachesTask.run(); }
57585960616263
public void bindService(T service) { Map<String, T> map = new HashMap<String, T>(); map.put(toId(service), service); services.putAll(map); scheduledExecutorService.submit(new UpdateCachesTask(cacheables, map)); }
68697071727374
} } public void bindCacheable(Cacheable<T> cacheable) { this.cacheables.add(cacheable); scheduledExecutorService.submit(new UpdateCachesTask(Arrays.asList(cacheable), services)); }