package com.correx.core.events.execution

import kotlinx.serialization.Serializable

@Serializable
data class RetryPolicy(
    val maxAttempts: Int,
    val backoffMs: Long = 1_000L,
) {
    init {
        require(maxAttempts >= 1) { "maxAttempts must be >= 1" }
    }
}
