Package io.split.engine.segments
Interface Segment
-
- All Known Implementing Classes:
RefreshableSegment
public interface SegmentFetches the keys in a segment. Implementing classes are responsible for keeping the segment up-to-date with the remote server.- Author:
- adil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(String key)This method MUST NOT throw any exceptions.voidforceRefresh()Forces a sync of the segment with the remote server, outside of any scheduled syncs.StringsegmentName()
-
-
-
Method Detail
-
segmentName
String segmentName()
-
contains
boolean contains(String key)
This method MUST NOT throw any exceptions.- Returns:
- true if this segment contains the key. false otherwise.
-
forceRefresh
void forceRefresh()
Forces a sync of the segment with the remote server, outside of any scheduled syncs. This method MUST NOT throw any exceptions.
-
-