Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created July 13, 2016 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/206e725b73e0ccb7e597e8263b8e7fb0 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/206e725b73e0ccb7e597e8263b8e7fb0 to your computer and use it in GitHub Desktop.
builder.setCommandHandler(
classOf[SaveRatio],
asJavaBiFunction
[SaveRatio, CommandContext[NotUsed], Persist[_ <: ExchangeEvent]](
(cmd: SaveRatio, ctx: CommandContext[NotUsed]) => {
ctx.thenPersist(
saveRatioToRatioChanged(cmd),
(t: ExchangeEvent) => ctx.reply(NotUsed)
)
}
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment