I'm struggling again with the types in Java. I want to group elements in a 
Flow, and call a processing step like this:

        final Flow<List<VerwerkingsResultaat>, Integer, BoxedUnit> 
saveOrganisatiesFlow = Flow.of(List.class).mapAsync(4, new 
Function<List<VerwerkingsResultaat>, Future<Integer>>() {
            @Override
            public Future<Integer> apply(List<VerwerkingsResultaat> 
verwerkingsResultaten) throws Exception {
                return Futures.successful(1);
            }
        });
        Future<BoxedUnit> future = recordSource.grouped(1000)
                .via(saveOrganisatiesFlow)
                .runWith(printingSink, materializer);

Of course there is a collission between the type List<VerwerkingsResultaat> 
and the Flow.of(List.class). How can I group elements like this in Java?

Jeroen

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to