Hi, I am trying to create and add filer to a graph. This filter receives request and returns new object with another data type. I tried to do it like that:
final UniformFanInShape<CoverRequest, CoverSetterData> A = builder.add(Flow.of(CoverRequest.class).map(mes -> new CoverSetterData(mes))); However in this case Java unable to recognize lambda return type. My next attempt was to create Flow and then add it to a graph: Flow<CoverRequest, CoverSetterData, NotUsed> flow = Flow.of(CoverRequest.class).map((CoverRequest mes) -> new CoverSetterData(mes)); final UniformFanInShape<CoverRequest, CoverSetterData> A = builder.add(flow); But in this case it says that builder.add(...) function doesn't take such arguments. Could you please help me with this issue? Thanks a lot! Regards, Sergey -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.