try this way type RequestSeqNr = Long type ResponsePromise = Promise[?] tracking :Map[RequestSeqNr,ResponsePromise]
when you passing the request to the other actor via Request(RquestSeqNr,msg) after then finished ,response you the RequestHandled(RquestSeqNr,usefulData) then you could extract the RquestSeqNr and finish the ResponsePromise so ,I think if you are using play with akka ,you may occur this issue.:P 在 2014年11月30日星期日UTC+8下午4时25分41秒,[email protected]写道: > > Hi, > > I have a code wherein I send several messages to the akka actor. But, > akka is an asynchronous message passing model. So, I couldn't match the > which response from the actor is, for what request. Basically, I want to > track messages and their corresponding responses. Because of the > asynchronous behavior, I don't know which response belongs to what request. > > Can someone please help me in tracking the corroboration between akka > requests and responses? > > Thank you > Karthik. > -- >>>>>>>>>> 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.
