当actorSubscriber死亡时,流会发生什么?

时间:2015-10-14 14:06:28

标签: java akka akka-stream

在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);

0 个答案:

没有答案