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

pl.allegro.tech.hermes.api.PersistentSubscriptionMetrics Maven / Gradle / Ivy

There is a newer version: 2.6.22
Show newest version
package pl.allegro.tech.hermes.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class PersistentSubscriptionMetrics {

    private long delivered;
    private long discarded;
    private long volume;

    @JsonCreator
    public PersistentSubscriptionMetrics(@JsonProperty("delivered") long delivered,
                                         @JsonProperty("discarded") long discarded,
                                         @JsonProperty("volume") long volume) {
        this.delivered = delivered;
        this.discarded = discarded;
        this.volume = volume;
    }

    public long getDelivered() {
        return delivered;
    }

    public void setDelivered(long delivered) {
        this.delivered = delivered;
    }

    public long getDiscarded() {
        return discarded;
    }

    public void setDiscarded(long discarded) {
        this.discarded = discarded;
    }

    public long getVolume() {
        return volume;
    }

    public void setVolume(long volume) {
        this.volume = volume;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy