@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; EnvironmentChangeRemoteApplicationEvent other = (EnvironmentChangeRemoteApplicationEvent) obj; if (values == null) { if (other.values != null) return false; } else if (!values.equals(other.values)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((values == null) ? 0 : values.hashCode()); return result; }
this.serviceMatcher.getServiceId(), this.bus.getAck().getDestinationService(), event.getDestinationService(), event.getId(), event.getClass()); this.cloudBusOutboundChannel .send(MessageBuilder.withPayload(ack).build()); event.getOriginService(), event.getDestinationService(), event.getId(), event.getClass()));
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; }
this.serviceMatcher.getServiceId(), this.bus.getAck().getDestinationService(), event.getDestinationService(), event.getId(), event.getClass()); this.cloudBusOutboundChannel .send(MessageBuilder.withPayload(ack).build()); event.getOriginService(), event.getDestinationService(), event.getId(), event.getClass()));
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; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((values == null) ? 0 : values.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; EnvironmentChangeRemoteApplicationEvent other = (EnvironmentChangeRemoteApplicationEvent) obj; if (values == null) { if (other.values != null) return false; } else if (!values.equals(other.values)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((ackDestinationService == null) ? 0 : ackDestinationService.hashCode()); result = prime * result + ((ackId == null) ? 0 : ackId.hashCode()); result = prime * result + ((event == null) ? 0 : event.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; AckRemoteApplicationEvent other = (AckRemoteApplicationEvent) obj; if (ackDestinationService == null) { if (other.ackDestinationService != null) return false; } else if (!ackDestinationService.equals(other.ackDestinationService)) return false; if (ackId == null) { if (other.ackId != null) return false; } else if (!ackId.equals(other.ackId)) return false; if (event == null) { if (other.event != null) return false; } else if (!event.equals(other.event)) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((ackDestinationService == null) ? 0 : ackDestinationService.hashCode()); result = prime * result + ((ackId == null) ? 0 : ackId.hashCode()); result = prime * result + ((event == null) ? 0 : event.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; AckRemoteApplicationEvent other = (AckRemoteApplicationEvent) obj; if (ackDestinationService == null) { if (other.ackDestinationService != null) return false; } else if (!ackDestinationService.equals(other.ackDestinationService)) return false; if (ackId == null) { if (other.ackId != null) return false; } else if (!ackId.equals(other.ackId)) return false; if (event == null) { if (other.event != null) return false; } else if (!event.equals(other.event)) return false; return true; } }