Re: [akka-user] Need feedback on Scala, AKKA and IOManager

39 views
Skip to first unread message

Viktor Klang

unread,
Aug 3, 2012, 2:38:28 PM8/3/12
to akka...@googlegroups.com
Hi Marius,

IO.repeat doesn't handle EOF properly. (there's a ticket for this).
Did you have any problems with that?

You'd want to avoid the "break" construct, which I think is pretty
easy if you avoid the builtin repeat.

Cheers,


On Fri, Jul 27, 2012 at 12:50 PM, Marius Potgieter
<mariusp...@gmail.com> wrote:
> Hi,
> I'm new to this and need some feedback on the best way to do this.
>
> I have a simple stream that needs to be processed. The first line of the
> stream include origin info for the stream. Then it is followed by an unknown
> number of "Id Time" pairs.
>
> Example stream:
>
> #ReaderName: TestReader
> E2002991911802230710D18C 1343131071218
> E2002991911802231100A99F 1343131071472
> E2002991911802231160A10D 1343131071556
> E20029919118022312609863 1343131071328
> E20029919118022313208F9D 1343131071432
> E20029919118022313308F9E 1343131071578
> E200299191180223142086DF 1343131071587
> E200299191180223143086E0 1343131071574
>
>
> I would like to know the best way to process the stream using AKKA and
> IOManager?
>
>
> I got it work, but don't think it's the best way to do it.
>
>
> My code http://pastebin.com/Mb21LMdQ
>
>
> Any feedback will be appreciated.
>
>
> Thanks,
>
> Marius
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/akka-user/-/fiHL9JGqf7wJ.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
Reply all
Reply to author
Forward
0 new messages