All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.springwolf.asyncapi.v3.bindings.pulsar.PulsarRetention Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
// SPDX-License-Identifier: Apache-2.0
package io.github.springwolf.asyncapi.v3.bindings.pulsar;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * The Retention Definition Object is used to describe the Pulsar Retention policy.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class PulsarRetention {
    /**
     * Time given in Minutes.
     */
    @Builder.Default
    @JsonProperty("time")
    private Integer time = 0;

    /**
     * Size given in MegaBytes.
     */
    @Builder.Default
    @JsonProperty("size")
    private Integer size = 0;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy