Introduce the onReceiveTimeout hook for SeedNodeProcess (#28646)
This commit is contained in:
parent
23b45daf05
commit
94bebb330a
1 changed files with 6 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ import scala.collection.immutable
|
|||
import scala.concurrent.duration.{ Deadline, _ }
|
||||
|
||||
import akka.actor.{ Actor, ActorRef, Address, CoordinatedShutdown, ReceiveTimeout }
|
||||
import akka.annotation.InternalApi
|
||||
import akka.annotation.{ InternalApi, InternalStableApi }
|
||||
import akka.util.unused
|
||||
|
||||
/**
|
||||
* INTERNAL API.
|
||||
|
|
@ -289,8 +290,12 @@ private[cluster] final class JoinSeedNodeProcess(
|
|||
seedNodes.filterNot(_ == selfAddress).mkString(", "))
|
||||
// no InitJoinAck received, try again
|
||||
self ! JoinSeedNode
|
||||
onReceiveTimeout(seedNodes, attempt)
|
||||
}
|
||||
|
||||
@InternalStableApi
|
||||
private[akka] def onReceiveTimeout(@unused seedNodes: immutable.IndexedSeq[Address], @unused attempt: Int): Unit = {}
|
||||
|
||||
def done: Actor.Receive = {
|
||||
case InitJoinAck(_, _) => // already received one, skip rest
|
||||
case ReceiveTimeout => context.stop(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue