io.serialized.client.feed.SequenceNumberTracker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialized-client Show documentation
Show all versions of serialized-client Show documentation
Java Client for Serialized APIs
The newest version!
package io.serialized.client.feed;
public interface SequenceNumberTracker {
/**
* @return The last consumed sequence number.
*/
long lastConsumedSequenceNumber();
/**
* Updates the last consumed sequence number.
*
* @param sequenceNumber The updated number
*/
void updateLastConsumedSequenceNumber(long sequenceNumber);
/**
* Resets the number to enable feed subscription to replay from the beginning.
*/
void reset();
}