Hi, In an actor, I use WSClient (a class from playframework) to access remote server, which returns a CompletionStage.
For my case, the actor should not process next message before the response is arrived and processed by the actor. Currently I use CompletableFuture.get() to block the actor's thread. I know it is not better. Will it be possible for me to notify the actor to stop fetching messages from its mailbox, then in some time later to notify it to work normally (for example,at the completion time of the CompletableFuture) ? Or is there any best practice for my case? Thanks for your help. Guofeng -- >>>>>>>>>> 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.