com.qmetric.feed.consumer.ConsumeAction 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;
/**
* Application-specific feed entry consumption.
*/
public interface ConsumeAction
{
/**
* Consume next entry from feed.
* Any exception thrown from this method will have the same affect as returning Result.RetryUnsuccessful().
*
* @param feedEntry Feed entry to consume.
*
* @return Success or failure of consumption.
*/
Result consume(FeedEntry feedEntry);
}