public void preStart(){
  cluster.subscribe(getSelf(),LeaderChanged.class);
}

public void preStart ( ) { cluster . subscribe ( getSelf ( ) , LeaderChanged . class ) ; }
the akka actor callback method . registers for cluster events on leader changes
