Package io.split.engine.experiments
Interface SplitChangeFetcher
-
- All Known Implementing Classes:
HttpSplitChangeFetcher
public interface SplitChangeFetcherCreated by adilaijaz on 5/11/15.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SplitChangefetch(long since)The returned list should contain AT MOST one split per name.
-
-
-
Method Detail
-
fetch
SplitChange fetch(long since)
The returned list should contain AT MOST one split per name. Thus, in the time between requested change number and latest change number, if multiple changes have happened to partitions tied to a name, just return the latest change. If no changes have every happened, then return the an empty list of changed partitions, 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 list of changed partitions with the latest change number being the same as the requested change number. If the client is asking for split changes for the first time, implementations should only return active partitions. No need to return killed partitions.- Parameters:
since- a value less than zero implies that the client is requesting information on partitions for the first time.- Returns:
- SegmentChange
- Throws:
RuntimeException- if there was a problem computing split changes
-
-