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

com.qmetric.feed.consumer.TrackedEntry Maven / Gradle / Ivy

Go to download

Java library for consuming HAL+JSON feeds (https://github.com/qmetric/hal-feed-server)

There is a newer version: 3.18
Show newest version
package com.qmetric.feed.consumer;

import static org.apache.commons.lang3.builder.ToStringBuilder.reflectionToString;

public class TrackedEntry
{
    public final EntryId id;

    public final int retries;

    public TrackedEntry(final EntryId id, final int retries)
    {
        this.id = id;
        this.retries = retries;
    }

    @Override public boolean equals(final Object obj)
    {
        return id.equals(obj);
    }

    @Override public int hashCode()
    {
        return id.hashCode();
    }

    @Override public String toString()
    {
        return reflectionToString(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy