com.qmetric.feed.consumer.store.FeedTracker 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.store;
import com.qmetric.feed.consumer.EntryId;
import com.qmetric.feed.consumer.TrackedEntry;
public interface FeedTracker
{
void checkConnectivity() throws ConnectivityException;
boolean isTracked(EntryId id);
void track(EntryId id);
Iterable getEntriesToBeConsumed();
void markAsConsuming(EntryId id) throws AlreadyConsumingException;
void markAsConsumed(EntryId id);
void fail(TrackedEntry trackedEntry, boolean scheduleRetry);
}