here one piece is missing which is in the Scala version:

  It should be mentioned that the router's restart behaviour has been overridden so that a restart,
  while still re-creating the children, will still preserve the same number of actors in the pool.