Package io.split.engine.segments
Interface Segment
- All Known Implementing Classes:
RefreshableSegment
public interface Segment
Fetches the keys in a segment. Implementing classes are responsible for keeping
the segment up-to-date with the remote server.
- Author:
- adil
-
Method Summary
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 Details
-
segmentName
String segmentName() -
contains
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.
-