pl.allegro.tech.hermes.api.Readiness Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-api Show documentation
Show all versions of hermes-api Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.api;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
public class Readiness {
@NotNull
private final boolean isReady;
@JsonCreator
public Readiness(@JsonProperty("isReady") boolean isReady) {
this.isReady = isReady;
}
@JsonGetter("isReady")
public boolean isReady() {
return isReady;
}
}