foolshat
unread,Aug 30, 2011, 7:16:43 AM8/30/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Akka User List
Hi,
I'm using some 3rd party libraries which must be called in a loop to
receive input over time, this code blocks waiting for I/O to finish.
I can run this within an Akka actor, sending a message to a 2nd actor
to process the input received. However, as it is running in an
infinite loop within the receive method, this does not feel right,
further I can't kill the actor nicely as it can't get a message as it
is in an infinite loop - I need to shutdown the actor cleanly to close
some files correctly etc..
What is a better actor/Akka way of dealing with this ? Previously I
would have used a thread, but I want to benefit from the Akka
supervision hierarchies.
Could Camel help here ?
The input is coming from a serial port infrequently, and from a camera
frequently.
Thanks guys.