public class SegmentSynchronizationTaskImp extends Object implements SegmentSynchronizationTask, Closeable
| Constructor and Description |
|---|
SegmentSynchronizationTaskImp(SegmentChangeFetcher segmentChangeFetcher,
long refreshEveryNSeconds,
int numThreads,
SDKReadinessGates gates,
SegmentCacheProducer segmentCacheProducer,
TelemetryRuntimeProducer telemetryRuntimeProducer,
SplitCacheConsumer splitCacheConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fetchAll(boolean addCacheHeader)
fetch every Segment
|
boolean |
fetchAllSynchronous()
fetch every Segment Synchronous
|
SegmentFetcher |
getFetcher(String segmentName)
returns segmentFecther
|
void |
initializeSegment(String segmentName)
initializes the segment
|
void |
run() |
void |
startPeriodicFetching()
starts the fetching
|
void |
stop()
stops the thread
|
public SegmentSynchronizationTaskImp(SegmentChangeFetcher segmentChangeFetcher, long refreshEveryNSeconds, int numThreads, SDKReadinessGates gates, SegmentCacheProducer segmentCacheProducer, TelemetryRuntimeProducer telemetryRuntimeProducer, SplitCacheConsumer splitCacheConsumer)
public void initializeSegment(String segmentName)
SegmentSynchronizationTaskinitializeSegment in interface SegmentSynchronizationTaskpublic SegmentFetcher getFetcher(String segmentName)
SegmentSynchronizationTaskgetFetcher in interface SegmentSynchronizationTaskpublic void startPeriodicFetching()
SegmentSynchronizationTaskstartPeriodicFetching in interface SegmentSynchronizationTaskpublic void stop()
SegmentSynchronizationTaskstop in interface SegmentSynchronizationTaskpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void fetchAll(boolean addCacheHeader)
SegmentSynchronizationTaskfetchAll in interface SegmentSynchronizationTaskpublic boolean fetchAllSynchronous()
SegmentSynchronizationTaskfetchAllSynchronous in interface SegmentSynchronizationTaskCopyright © 2021. All rights reserved.