Don't stop dynamic router when all routees terminated, see #2734

This commit is contained in:
Patrik Nordwall 2013-04-08 13:19:44 +02:00
parent 3ee42dbe11
commit accdd63e7d
5 changed files with 39 additions and 6 deletions

View file

@ -60,6 +60,8 @@ final case class ClusterRouterConfig(local: RouterConfig, settings: ClusterRoute
override def resizer: Option[Resizer] = local.resizer
override def stopRouterWhenAllRouteesRemoved: Boolean = false
override def withFallback(other: RouterConfig): RouterConfig = other match {
case ClusterRouterConfig(_: RemoteRouterConfig, _) throw new IllegalStateException(
"ClusterRouterConfig is not allowed to wrap a RemoteRouterConfig")