Tôi đang sử dụng dòng akka graphDSL để tạo biểu đồ runnable. Không có lỗi biên dịch-thời gian wrt đầu vào/đầu ra của các thành phần dòng. Thời gian chạy ném theo lỗi sau:Lỗi khi tạo biểu đồ: yêu cầu không thành công: Cửa hút gió [] và đầu ra [] phải tương ứng với cửa hút gió [in] và đầu ra [out]
Bất kỳ ý tưởng nào tôi nên xác minh để làm cho nó chạy?
requirement failed: The inlets [] and outlets [] must correspond to the inlets [in] and outlets [out]
at scala.Predef$.require(Predef.scala:219)
at akka.stream.Shape.requireSamePortsAs(Shape.scala:168)
at akka.stream.impl.StreamLayout$CompositeModule.replaceShape(StreamLayout.scala:390)
at akka.stream.scaladsl.GraphApply$class.create(GraphApply.scala:18)
at akka.stream.scaladsl.GraphDSL$.create(Graph.scala:813)
at com.flipkart.connekt.busybees.streams.Topology$.bootstrap(Topology.scala:109)
at com.flipkart.connekt.busybees.BusyBeesBoot$.start(BusyBeesBoot.scala:65)
at com.flipkart.connekt.boot.Boot$.delayedEndpoint$com$flipkart$connekt$boot$Boot$1(Boot.scala:39)
at com.flipkart.connekt.boot.Boot$delayedInit$body.apply(Boot.scala:13)
Cấu trúc đồ thị:
source ~> flowRate ~> render ~> platformPartition.in
platformPartition.out(0) ~> formatIOS ~> apnsDispatcher ~> apnsEventCreator ~> merger.in(0)
platformPartition.out(1) ~> formatAndroid ~> httpDispatcher ~> gcmPoolFlow ~> rHandlerGCM ~> merger.in(1)
merger.out ~> evtCreator ~> Sink.ignore
Bạn có thể thực sự đăng kế hoạch chi tiết đồ thị của mình không? – manub
Tôi đã cập nhật câu hỏi với cấu trúc biểu đồ. Các tham số kiểu nguồn/lưu lượng/sink đều khớp trên đầu vào/đầu ra. – phantomastray
Các kiểu 'render',' platformPartition', 'merger' và' evtCreator' cũng có thể hữu ích. – manub