Package io.split.engine.segments
Class RefreshableSegment
- java.lang.Object
-
- io.split.engine.segments.RefreshableSegment
-
-
Constructor Summary
Constructors Constructor Description RefreshableSegment(String segmentName, SegmentChangeFetcher segmentChangeFetcher, long changeNumber, SDKReadinessGates gates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longchangeNumber()booleancontains(String key)This method MUST NOT throw any exceptions.static RefreshableSegmentcreate(String segmentName, SegmentChangeFetcher segmentChangeFetcher, SDKReadinessGates gates)voidforceRefresh()Forces a sync of the segment with the remote server, outside of any scheduled syncs.voidrun()StringsegmentName()StringtoString()
-
-
-
Constructor Detail
-
RefreshableSegment
public RefreshableSegment(String segmentName, SegmentChangeFetcher segmentChangeFetcher, long changeNumber, SDKReadinessGates gates)
-
-
Method Detail
-
segmentName
public String segmentName()
- Specified by:
segmentNamein interfaceSegment
-
contains
public boolean contains(String key)
Description copied from interface:SegmentThis method MUST NOT throw any exceptions.
-
forceRefresh
public void forceRefresh()
Description copied from interface:SegmentForces a sync of the segment with the remote server, outside of any scheduled syncs. This method MUST NOT throw any exceptions.- Specified by:
forceRefreshin interfaceSegment
-
changeNumber
public long changeNumber()
-
create
public static RefreshableSegment create(String segmentName, SegmentChangeFetcher segmentChangeFetcher, SDKReadinessGates gates)
-
-