リプレイではない:はアッカunstashAll()私はこのたメッセージ
val receive = beforeLoadReceive // my default receive
override def preStart(): Unit = {
doSomeLoadFromDB()
unstashAll()
context.become(connectedReceive)
println("I also get to here..."
}
def connectedReceive: Receive = {
case GetData =>
println("for some reason i'm not getting to here after unstashAll why?")
sender() ! "this is your data"
}
def beforeLoadReceive: Receive = {
case GetData =>
println(s"I get to here so it's stashed")
stash()
}
ので、私はその隠しので、私はそこにメッセージを見るstash()
を使用していますし、また私はunstashAll()
が呼び出されたことを後で見るが、私はメッセージを受け取っていない:connectedReceive
その理由は何ですか?