May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, perform the following steps:
package com.packt.chapter8 import akka.stream.{Attributes, Outlet, SourceShape} import akka.stream.stage._ class HelloAkkaStreamsSource extends GraphStage[SourceShape[String]] { val out: Outlet[String] = Outlet("SystemInputSource") override val shape: SourceShape[String] = SourceShape(out) override def createLogic(inheritedAttributes: Attributes): GraphStageLogic = new GraphStageLogic(shape) { setHandler(out, new OutHandler { override def onPull() = { val line = "Hello World ...
Read now
Unlock full access