pl.allegro.tech.hermes.api.OffsetRetransmissionDate 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.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import jakarta.validation.constraints.NotNull;
import pl.allegro.tech.hermes.api.jackson.OffsetDateTimeSerializer;
import java.time.OffsetDateTime;
public class OffsetRetransmissionDate {
@NotNull
private final OffsetDateTime retransmissionDate;
public OffsetRetransmissionDate(@JsonProperty("retransmissionDate") OffsetDateTime retransmissionDate) {
this.retransmissionDate = retransmissionDate;
}
@JsonSerialize(using = OffsetDateTimeSerializer.class)
public OffsetDateTime getRetransmissionDate() {
return retransmissionDate;
}
}