com.qmetric.feed.consumer.TrackedEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hal-feed-consumer Show documentation
Show all versions of hal-feed-consumer Show documentation
Java library for consuming HAL+JSON feeds (https://github.com/qmetric/hal-feed-server)
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);
}
}