Re: [akka-user] Actor stream to file

2016-07-01 Thread Patrik Nordwall
Have you looked at:

   - Sink.actorRef
   - Sink.actorRefWithAck
   - mapAsync + ask

/Patrik

On Thu, Jun 23, 2016 at 8:53 PM, Richard Rodseth  wrote:

> I have a stream which needs to output some progress/error text to a file
> and to console (different things to each).
>
> I've implemented something using alsoTo(fileSink).alsoTo(consoleSink).
>
> But now I'm considering funneling these messages through an actor
> intermediary instead. i.e. alsoTo(outputActor)
>
> Wondering how I'd set things up to make the output actor stream some of
> its messages to a  file sink. Would it be an ActorPublisher that connected
> itself to the file sink?
>
> --
> >> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

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


[akka-user] Actor stream to file

2016-06-23 Thread Richard Rodseth
I have a stream which needs to output some progress/error text to a file
and to console (different things to each).

I've implemented something using alsoTo(fileSink).alsoTo(consoleSink).

But now I'm considering funneling these messages through an actor
intermediary instead. i.e. alsoTo(outputActor)

Wondering how I'd set things up to make the output actor stream some of its
messages to a  file sink. Would it be an ActorPublisher that connected
itself to the file sink?

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