pl.allegro.tech.hermes.api.MessageTextPreview 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.JsonProperty;
public class MessageTextPreview {
private final String content;
private final boolean truncated;
@JsonCreator
public MessageTextPreview(@JsonProperty("content") String content, @JsonProperty("truncated") boolean truncated) {
this.content = content;
this.truncated = truncated;
}
public String getContent() {
return content;
}
public boolean isTruncated() {
return truncated;
}
}