Hi Adam, You can use broadcast to split out the stream going into the Sink, and then attach to that side of the graph an OnCompleteSink which takes a function callback: Try[Unit] ⇒ Unit which is called during normal and failure termination.
-Endre On Thu, Oct 30, 2014 at 12:31 PM, Adam Warski <[email protected]> wrote: > Sure :) I'm using streams 0.9, scaladsl2 and I want to add failure > detection to that: > > > https://github.com/adamw/reactmq/blob/master/src/main/scala/com/reactmq/Sender.scala > > Adam > > On Thursday, October 30, 2014 12:04:23 PM UTC+1, Akka Team wrote: >> >> Hi Adam, >> >> >>> I'm not running Windows (MacOS), but how could these signals be handled? >>> I was looking for some handlers in the value returned by run() (e.g. >>> onComplete, onError), but it seems not much is there :) >>> >> >> Which version of Akka Stream are you using and which version of the >> scaladsl? How does your pipeline look like, what is the sink element (the >> thing in which you pipe TCP into). >> >> In general, a code snippet would help a lot. >> >> -Endre >> >> >>> >>> Thanks, >>> Adam >>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> >> >> -- >> Akka Team >> Typesafe - The software stack for applications that scale >> Blog: letitcrash.com >> Twitter: @akkateam >> > -- > >>>>>>>>>> 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. > -- Akka Team Typesafe - The software stack for applications that scale Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
