Package io.split.engine.segments
Interface SegmentChangeFetcher
-
- All Known Implementing Classes:
HttpSegmentChangeFetcher
public interface SegmentChangeFetcherFetches changes in the segment since a reference point.- Author:
- adil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SegmentChangefetch(String segmentName, long changesSinceThisChangeNumber)
-
-
-
Method Detail
-
fetch
SegmentChange fetch(String segmentName, long changesSinceThisChangeNumber)
If the segment does not exist, then return the an empty segment change with the latest change number set to a value less than 0. If no changes have happened since the change number requested, then return an empty segment change with the latest change number equal to the requested change number.- Parameters:
segmentName- the name of the segment to fetch.changesSinceThisChangeNumber- a value less than zero implies that the client is requesting information on this segment for the first time.- Returns:
- SegmentChange
- Throws:
RuntimeException- if there was a problem fetching segment changes
-
-