Package io.split.engine.common
Class SynchronizerImp
- java.lang.Object
-
- io.split.engine.common.SynchronizerImp
-
- All Implemented Interfaces:
Synchronizer
public class SynchronizerImp extends Object implements Synchronizer
-
-
Constructor Summary
Constructors Constructor Description SynchronizerImp(SplitTasks splitTasks, SplitFetcher splitFetcher, SplitCacheProducer splitCacheProducer, SegmentCacheProducer segmentCacheProducer, RuleBasedSegmentCacheProducer ruleBasedSegmentCacheProducer, int onDemandFetchRetryDelayMs, int onDemandFetchMaxRetries, int failedAttemptsBeforeLogging, HashSet<String> sets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.split.engine.common.SynchronizerImp.SyncResultattemptSegmentSync(String segmentName, long targetChangeNumber, FetchOptions opts, Function<Void,Long> nextWaitMs, int maxRetries)voidforceRefreshSegment(String segmentName)voidlocalKillSplit(SplitKillNotification splitKillNotification)voidrefreshSegment(String segmentName, Long targetChangeNumber)voidrefreshSplits(Long targetChangeNumber, Long ruleBasedSegmentChangeNumber)voidstartPeriodicDataRecording()voidstartPeriodicFetching()voidstopPeriodicDataRecording()voidstopPeriodicFetching()booleansyncAll()
-
-
-
Constructor Detail
-
SynchronizerImp
public SynchronizerImp(SplitTasks splitTasks, SplitFetcher splitFetcher, SplitCacheProducer splitCacheProducer, SegmentCacheProducer segmentCacheProducer, RuleBasedSegmentCacheProducer ruleBasedSegmentCacheProducer, int onDemandFetchRetryDelayMs, int onDemandFetchMaxRetries, int failedAttemptsBeforeLogging, HashSet<String> sets)
-
-
Method Detail
-
syncAll
public boolean syncAll()
- Specified by:
syncAllin interfaceSynchronizer
-
startPeriodicFetching
public void startPeriodicFetching()
- Specified by:
startPeriodicFetchingin interfaceSynchronizer
-
stopPeriodicFetching
public void stopPeriodicFetching()
- Specified by:
stopPeriodicFetchingin interfaceSynchronizer
-
refreshSplits
public void refreshSplits(Long targetChangeNumber, Long ruleBasedSegmentChangeNumber)
- Specified by:
refreshSplitsin interfaceSynchronizer
-
localKillSplit
public void localKillSplit(SplitKillNotification splitKillNotification)
- Specified by:
localKillSplitin interfaceSynchronizer
-
attemptSegmentSync
public io.split.engine.common.SynchronizerImp.SyncResult attemptSegmentSync(String segmentName, long targetChangeNumber, FetchOptions opts, Function<Void,Long> nextWaitMs, int maxRetries)
-
refreshSegment
public void refreshSegment(String segmentName, Long targetChangeNumber)
- Specified by:
refreshSegmentin interfaceSynchronizer
-
startPeriodicDataRecording
public void startPeriodicDataRecording()
- Specified by:
startPeriodicDataRecordingin interfaceSynchronizer
-
stopPeriodicDataRecording
public void stopPeriodicDataRecording()
- Specified by:
stopPeriodicDataRecordingin interfaceSynchronizer
-
forceRefreshSegment
public void forceRefreshSegment(String segmentName)
- Specified by:
forceRefreshSegmentin interfaceSynchronizer
-
-