Hi Goufeng,

I would recommend you to read up on GraphStage rather than the 
ActorSubscriber and ActorPublisher as it is a much more straight forward 
way to create custom stages. You can find a pretty thorough walkthrough of 
how it works and nice code samples in Java for GraphStage in the docs 
here: http://doc.akka.io/docs/akka/2.4.4/java/stream/stream-customize.html

--
Johan Andrén
Akka Team, Lightbend Inc.



On Wednesday, April 13, 2016 at 8:58:45 AM UTC+2, Guofeng Zhang wrote:
>
> Hi,
>
> I am learning akka-stream, so I want to understand the low-level detail. I 
> found the following post is very useful for my case:
> http://bryangilbert.com/blog/2015/02/04/akka-reactive-streams/
>
> In this post, the processor is defined in Scala as the following:
> class DoublingProcessor extends ActorSubscriber with 
> ActorPublisher[BigInteger] { ....}
>
> My question is:
>      How to define the above process in Java?
>
> Thanks for your help.
>
> Guofeng
>
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to