org.graylog2.shared.messageq.AutoValue_MessageQueueAcknowledger_Metrics Maven / Gradle / Ivy
package org.graylog2.shared.messageq;
import com.codahale.metrics.Meter;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MessageQueueAcknowledger_Metrics extends MessageQueueAcknowledger.Metrics {
private final Meter acknowledgedMessages;
private AutoValue_MessageQueueAcknowledger_Metrics(
Meter acknowledgedMessages) {
this.acknowledgedMessages = acknowledgedMessages;
}
@Override
public Meter acknowledgedMessages() {
return acknowledgedMessages;
}
@Override
public String toString() {
return "Metrics{"
+ "acknowledgedMessages=" + acknowledgedMessages
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MessageQueueAcknowledger.Metrics) {
MessageQueueAcknowledger.Metrics that = (MessageQueueAcknowledger.Metrics) o;
return this.acknowledgedMessages.equals(that.acknowledgedMessages());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= acknowledgedMessages.hashCode();
return h$;
}
static final class Builder extends MessageQueueAcknowledger.Metrics.Builder {
private Meter acknowledgedMessages;
Builder() {
}
@Override
public MessageQueueAcknowledger.Metrics.Builder acknowledgedMessages(Meter acknowledgedMessages) {
if (acknowledgedMessages == null) {
throw new NullPointerException("Null acknowledgedMessages");
}
this.acknowledgedMessages = acknowledgedMessages;
return this;
}
@Override
public MessageQueueAcknowledger.Metrics build() {
if (this.acknowledgedMessages == null) {
String missing = " acknowledgedMessages";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_MessageQueueAcknowledger_Metrics(
this.acknowledgedMessages);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy