package cn.yunzhixue.ability.center.examsprint.infrastructure.report.pdf;

public final class DefaultPlaywrightPdfWorkerFactory implements PlaywrightPdfWorkerFactory {

    private final double launchTimeoutMillis;
    private final double renderTimeoutMillis;

    public DefaultPlaywrightPdfWorkerFactory(double launchTimeoutMillis, double renderTimeoutMillis) {
        this.launchTimeoutMillis = launchTimeoutMillis;
        this.renderTimeoutMillis = renderTimeoutMillis;
    }

    @Override
    public PlaywrightPdfWorker create() {
        return new DefaultPlaywrightPdfWorker(launchTimeoutMillis, renderTimeoutMillis);
    }
}
