QnaList > Groups > Akka-User > Mar 2016
faq

[akka-user] Using ActorPublisher Without ActorSubscriber

Hello,
I think I misunderstand the usage of ActorPublisher. I read the 
documentation 
(http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0.3/scala/stream-integrations.html#ActorPublisher) 
but I cannot seem to understand how to use it.
I am creating an ActorPublisher actor and creating a Source like this:
val source = Source.actorPublisher(publisherProps)
I then connect this source to a sink and run it: 
source.runWith(Sink.ignore). But debugging the actor I can see that 
totalDemand is always 0, so the actor never calls `onNext`. So what should 
update the demand on the actor? Do I always have to connect an 
ActorPublisher to an ActorSubscriber so that demand in ActorPublisher is 
updated properly?
Thank you.
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.

asked Mar 9 2016 at 04:47

=?ISO-8859-1?Q?Sim=E3o_Mata?= 's gravatar image



Related discussions

Tagged

Group Akka-user

asked Mar 9 2016 at 04:47

active Mar 9 2016 at 04:47

posts:1

users:1

Akka-dev

Akka-user

©2013 QnaList.com