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
Could you please help me with this issue?
Thanks a lot!
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> 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 post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.