import akka.actor.ActorPath;
import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.Props;
import akka.actor.ActorPath;
import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.Props;
return shard.getContext().system().actorSelection(path);
}
/**
* Invoked whenever the local shard's leadership role changes.
*
return shard.getContext().system().actorSelection(path);
}
/**
* Invoked whenever the local shard's leadership role changes.
*
* @param hasLeader true if the shard knows about leader ID
*/
abstract void onLeadershipChange(boolean isLeader, boolean hasLeader);
* @param hasLeader true if the shard knows about leader ID
*/
abstract void onLeadershipChange(boolean isLeader, boolean hasLeader);