> 26 maj 2015 kl. 14:54 skrev Sam Halliday <[email protected]>:
> 
> Hi all,
> 
> I need to interface an Actor with an API that requires a Flow.
> 
> The actor can receive a sealed trait family of inputs and will only send (a 
> different) sealed family of outputs to upstream, so I suspect that will help 
> matters.
> 
> Looking in FlowOps, it looks like I can create a Flow from a partial 
> function, but there isn't anything that would just simply take an ActorRef.

Instead of trying to make sense of method signatures I highly recommend reading 
the documentation first—we spent considerable effort on describing the entirely 
new abstractions that we have built, and you will not understand the point 
behind the signatures without knowing what “Flow” entails.

> 
> Am I missing something trivial to just upgrade an ActoRef to a Flow? 
> (Obviously there is a bunch of extra messages the actor will have to handle, 
> such as backpressure messages etc... but assume that's all taken care of)

Yes, when just using Flows and our DSL then we construct Actors for you that 
take care of all these things. But when you write those Actors yourself, then 
obviously you need to take care of these things.

Regards,

Roland

> 
> Best regards,
> Sam
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/akka-user 
> <http://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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