在Akka Streams(java api)中,当ActorSubscriber死亡时,上游会发生什么?流会被取消吗?我使用akka 2.4和akka streams experimental 1.0和jdk 8
代码如下所示:
Materializer chunkerMat = ...
Source<Buffer, BoxedUnit> bufferSource = ...
Sink<Buffer, ActorRef> sink = Sink.<Buffer>actorSubscriber(Props.create(new AkkaVertxSubscriber.Creator(response)));
bufferSource.runWith(sink, chunkerMat);