sbt - Akka cluster for Scala 2.10 - cluster events -


i'm using akka cluster , want listen on event of memberjoined , memberleft:

override def prestart(): unit = {   cluster.subscribe(self, classof[memberevent], classof[memberjoined], classof[memberleft]) } 

the problem requires following dependency:

"com.typesafe.akka" % "akka-cluster_2.11.xx" % "2.4.12" 

but have use scala 2.10 (i can't change 2.11) , akka api scala 2.10 2 events missing: akka api scala 2.10 (exists on akka api scala 2.11)

is there other way can listen on events?

override def receive = {   case memberjoined(member) => println(s"member joined $member")   case memberleft(member) => println(s"member left $member") } 

the difference not between scala versions, between akka versions. akka 2.4.x not compatible scala 2.10, akka 2.3.x compiled against scala 2.10.

as far i'm aware, changes of clustering implementation done in 2.4.x , not back-ported 2.3.x version.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -