Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.28 KB | None | 0 0
  1. val kafkaSink = RestartSink
  2.       .withBackoff(
  3.         minBackoff = 5.seconds,
  4.         maxBackoff = 60.seconds,
  5.         randomFactor = .2
  6.       ) { () =>
  7.         Producer.plainSink(kafkaProducerSetting)
  8.       }
  9.       .mapMaterializedValue[Future[Done]](_ => Future.successful(Done))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement