@RequestMapping(method = RequestMethod.POST) public Set<String> notifyByPath(@RequestHeader HttpHeaders headers, @RequestBody Map<String, Object> request) { PropertyPathNotification notification = this.extractor.extract(headers, request); if (notification != null) { Set<String> services = new LinkedHashSet<>(); for (String path : notification.getPaths()) { services.addAll(guessServiceName(path)); } if (this.applicationEventPublisher != null) { for (String service : services) { log.info("Refresh for: " + service); this.applicationEventPublisher .publishEvent(new RefreshRemoteApplicationEvent(this, this.busId, service)); } return services; } } return Collections.emptySet(); }
@RequestMapping(method = RequestMethod.POST) public Set<String> notifyByPath(@RequestHeader HttpHeaders headers, @RequestBody Map<String, Object> request) { PropertyPathNotification notification = this.extractor.extract(headers, request); if (notification != null) { Set<String> services = new LinkedHashSet<>(); for (String path : notification.getPaths()) { services.addAll(guessServiceName(path)); } if (this.applicationEventPublisher != null) { for (String service : services) { log.info("Refresh for: " + service); this.applicationEventPublisher .publishEvent(new RefreshRemoteApplicationEvent(this, this.busId, service)); } return services; } } return Collections.emptySet(); }
@WriteOperation public void busRefresh() { publish(new RefreshRemoteApplicationEvent(this, getInstanceId(), null)); }
@WriteOperation public void busRefresh() { publish(new RefreshRemoteApplicationEvent(this, getInstanceId(), null)); }
@WriteOperation public void busRefreshWithDestination(@Selector String destination) { //TODO: document destination publish(new RefreshRemoteApplicationEvent(this, getInstanceId(), destination)); }
@WriteOperation public void busRefreshWithDestination(@Selector String destination) { //TODO: document destination publish(new RefreshRemoteApplicationEvent(this, getInstanceId(), destination)); }