Merge branch 'master' into wip-2473-npe-subscribe-patriknw
Conflicts: akka-cluster/src/main/scala/akka/cluster/Cluster.scala
This commit is contained in:
commit
6dd0d736f7
27 changed files with 143 additions and 256 deletions
|
|
@ -79,9 +79,9 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
val failureDetector = {
|
||||
import settings.{ FailureDetectorImplementationClass ⇒ fqcn }
|
||||
system.dynamicAccess.createInstanceFor[FailureDetector](
|
||||
fqcn, Seq(classOf[ActorSystem] -> system, classOf[ClusterSettings] -> settings)).fold(
|
||||
e ⇒ throw new ConfigurationException("Could not create custom failure detector [" + fqcn + "] due to:" + e.toString),
|
||||
identity)
|
||||
fqcn, Seq(classOf[ActorSystem] -> system, classOf[ClusterSettings] -> settings)).recover({
|
||||
case e ⇒ throw new ConfigurationException("Could not create custom failure detector [" + fqcn + "] due to:" + e.toString)
|
||||
}).get
|
||||
}
|
||||
|
||||
// ========================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue