package com.correx.infrastructure.artifactscas.config

import java.nio.file.Path

data class CasConfig(
    val rootDir: Path,
    val maxSegmentBytes: Long = DEFAULT_MAX_SEGMENT_BYTES,
    val maxTotalBytes: Long = DEFAULT_MAX_TOTAL_BYTES,
) {
    companion object {
        const val DEFAULT_MAX_SEGMENT_BYTES: Long = 64L * 1024 * 1024
        const val DEFAULT_MAX_TOTAL_BYTES: Long = Long.MAX_VALUE
    }
}
