Skip to content

Commit

Permalink
fix: add jvm overloads to subconfig objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Aug 5, 2024
1 parent 684a99f commit 310066b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/kotlin/LocalEvaluationConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class LocalEvaluationConfig internal constructor(
}
}

data class AssignmentConfiguration(
data class AssignmentConfiguration @JvmOverloads constructor(
val apiKey: String,
val cacheCapacity: Int = 65536,
val eventUploadThreshold: Int = 10,
Expand All @@ -180,14 +180,15 @@ data class AssignmentConfiguration(
val middleware: List<Middleware> = listOf(),
)

data class CohortSyncConfiguration(

data class CohortSyncConfiguration @JvmOverloads constructor(
val apiKey: String,
val secretKey: String,
val maxCohortSize: Int = Int.MAX_VALUE,
)

@ExperimentalApi
data class EvaluationProxyConfiguration(
data class EvaluationProxyConfiguration @JvmOverloads constructor(
val proxyUrl: String,
val cohortCacheCapacity: Int = 1000000,
val cohortCacheTtlMillis: Long = 60000L,
Expand Down

0 comments on commit 310066b

Please sign in to comment.