All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.split.engine.segments.SegmentSynchronizationTask Maven / Gradle / Ivy

package io.split.engine.segments;

public interface SegmentSynchronizationTask extends Runnable {
    /**
     * initializes the segment
     * @param segmentName
     */
    void initializeSegment(String segmentName);

    /**
     * returns segmentFecther
     * @param segmentName
     * @return
     */
    SegmentFetcher getFetcher(String segmentName);

    /**
     * starts the fetching
     */
    void startPeriodicFetching();

    /**
     * stops the thread
     */
    void stop();

    /**
     * fetch every Segment
     * @param addCacheHeader
     */
    void fetchAll(boolean addCacheHeader);

    /**
     * fetch every Segment Synchronous
     */
    boolean fetchAllSynchronous();
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy