public boolean isFromSelf(RemoteApplicationEvent event) { String originService = event.getOriginService(); String serviceId = getServiceId(); return this.matcher.match(originService, serviceId); }
public boolean isFromSelf(RemoteApplicationEvent event) { String originService = event.getOriginService(); String serviceId = getServiceId(); return this.matcher.match(originService, serviceId); }
public boolean isForSelf(RemoteApplicationEvent event) { String destinationService = event.getDestinationService(); if (destinationService == null || destinationService.trim().isEmpty() || this.matcher.match(destinationService, getServiceId())) { return true; } // Check all potential config names instead of service name for (String configName : this.configNames) { if (this.matcher.match(destinationService, configName)) { return true; } } return false; }
public boolean isForSelf(RemoteApplicationEvent event) { String destinationService = event.getDestinationService(); if (destinationService == null || destinationService.trim().isEmpty() || this.matcher.match(destinationService, getServiceId())) { return true; } // Check all potential config names instead of service name for (String configName : this.configNames) { if (this.matcher.match(destinationService, configName)) { return true; } } return false; }
this.serviceMatcher.getServiceId(), this.bus.getAck().getDestinationService(), event.getDestinationService(), event.getId(), event.getClass());
this.serviceMatcher.getServiceId(), this.bus.getAck().getDestinationService(), event.getDestinationService(), event.getId(), event.getClass());