Package io.split.client
Class LocalhostSegmentFetcherNoop
- java.lang.Object
-
- io.split.client.LocalhostSegmentFetcherNoop
-
- All Implemented Interfaces:
SegmentChangeFetcher
public class LocalhostSegmentFetcherNoop extends Object implements SegmentChangeFetcher
-
-
Constructor Summary
Constructors Constructor Description LocalhostSegmentFetcherNoop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentChangefetch(String segmentName, long changesSinceThisChangeNumber, FetchOptions options)
-
-
-
Method Detail
-
fetch
public SegmentChange fetch(String segmentName, long changesSinceThisChangeNumber, FetchOptions options)
Description copied from interface:SegmentChangeFetcherIf 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.- Specified by:
fetchin interfaceSegmentChangeFetcher- 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
-
-