pl.allegro.tech.hermes.consumers.consumer.sender.resolver.EndpointAddressResolutionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.consumer.sender.resolver;
import pl.allegro.tech.hermes.api.EndpointAddress;
@SuppressWarnings("serial")
public class EndpointAddressResolutionException extends Exception {
private final boolean ignoreInRateCalculation;
public EndpointAddressResolutionException(EndpointAddress endpointAddress, Throwable cause, boolean ignoreInRateCalculation) {
super("Failed to resolve " + endpointAddress, cause);
this.ignoreInRateCalculation = ignoreInRateCalculation;
}
public EndpointAddressResolutionException(EndpointAddress endpointAddress, Throwable cause) {
this(endpointAddress, cause, false);
}
public EndpointAddressResolutionException(String message, Throwable cause, boolean ignoreInRateCalculation) {
super(message, cause);
this.ignoreInRateCalculation = ignoreInRateCalculation;
}
public EndpointAddressResolutionException(String message, Throwable cause) {
this(message, cause, false);
}
public boolean isIgnoreInRateCalculation() {
return ignoreInRateCalculation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy