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

io.split.engine.sse.workers.SegmentsWorkerImp Maven / Gradle / Ivy

package io.split.engine.sse.workers;

import io.split.engine.common.Synchronizer;
import io.split.engine.sse.dtos.SegmentQueueDto;

import static com.google.common.base.Preconditions.checkNotNull;

public class SegmentsWorkerImp extends Worker {
    private final Synchronizer _synchronizer;

    public SegmentsWorkerImp(Synchronizer synchronizer) {
        super("Segments");
        _synchronizer = checkNotNull(synchronizer);
    }

    @Override
    protected void executeRefresh(SegmentQueueDto segmentQueueDto) {
        _synchronizer.refreshSegment(segmentQueueDto.getSegmentName(), segmentQueueDto.getChangeNumber());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy