package at.procon.eventhub.importing.extraction;

import at.procon.eventhub.importing.ExtractionBatchResult;
import at.procon.eventhub.importing.ImportPlanItemDto;
import at.procon.eventhub.importing.ImportRunRequest;
import at.procon.eventhub.importing.ImportTimeChunkDto;
import java.util.UUID;

public interface ExtractionBatchExecutor<R extends ImportRunRequest, B extends ExtractionBatchResult> {

    B execute(
            UUID importRunId,
            UUID packageId,
            int eventSourceId,
            R request,
            ImportPlanItemDto planItem,
            ImportTimeChunkDto chunk
    );
}
