Skip to content

Commit

Permalink
Added some missing imports (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
w8mr authored Oct 31, 2023
1 parent c5f9d6b commit 90ca0b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.time.Duration;

public class RecipeWithEventReceivePeriod {
public class RecipeWithRetentionPeriod {

public final static Recipe recipe = new Recipe("example")
.withRetentionPeriod(Duration.ofDays(3));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package examples.kotlin.recipes

import com.ing.baker.recipe.kotlindsl.ExperimentalDsl
import com.ing.baker.recipe.kotlindsl.recipe
import kotlin.time.Duration.Companion.days
import kotlin.time.Duration.Companion.hours

@ExperimentalDsl
object RecipeWithEventReceivePeriod {
object RecipeWithRetentionPeriod {
val recipe = recipe(name = "example") {
retentionPeriod = 3.days
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package examples.scala.recipes

import com.ing.baker.recipe.scaladsl.Recipe

import scala.concurrent.duration.{FiniteDuration, HOURS}
import scala.concurrent.duration.{DAYS, FiniteDuration, HOURS}

object RecipeWithEventReceivePeriod {
object RecipeWithRetentionPeriod {
val recipe: Recipe = Recipe(name = "example")
.withRetentionPeriod(FiniteDuration.apply(3, DAYS))
}

0 comments on commit 90ca0b7

Please sign in to comment.