Joining member should not be leader, see #3021
* Prefer members with status Up or Leaving, and as fallback use Joining, Exiting, Down * Minor scaladoc fixes
This commit is contained in:
parent
5b844ec1e6
commit
d72d48301a
8 changed files with 79 additions and 20 deletions
|
|
@ -182,10 +182,7 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
* or subclass.
|
||||
*
|
||||
* A snapshot of [[akka.cluster.ClusterEvent.CurrentClusterState]]
|
||||
* will be sent to the subscriber as the first event. When
|
||||
* `to` Class is a [[akka.cluster.ClusterEvent.InstantMemberEvent]]
|
||||
* (or subclass) the snapshot event will instead be a
|
||||
* [[akka.cluster.ClusterEvent.InstantClusterState]].
|
||||
* will be sent to the subscriber as the first event.
|
||||
*/
|
||||
def subscribe(subscriber: ActorRef, to: Class[_]): Unit =
|
||||
clusterCore ! InternalClusterAction.Subscribe(subscriber, to)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue