Re: [akka-user] How can I check that MemberUp(m:Member) does not equal self actor?

2016-11-07 Thread Akka Team
Hi, Cluster.selfAddress will give you the address of the actor system, and then you can compare it to Member.address -- Johan Akka Team On Mon, Nov 7, 2016 at 6:18 AM, Unknown Unknown wrote: > There is the following actor which belongs to cluster and is subscribed to >

[akka-user] How can I check that MemberUp(m:Member) does not equal self actor?

2016-11-07 Thread Unknown Unknown
There is the following actor which belongs to cluster and is subscribed to cluster events: class Worker extends Actor { val cluster = Cluster(context.system) var router = Router(BroadcastRoutingLogic(), Vector.empty[ ActorRefRoutee]) override def preStart(): Unit =