| MultiNodeClusterSpecRoleOfLeader Method |
Leader according to the address ordering of the roles.
Note that this can only be used for a cluster with all members
in Up status, i.e. use `awaitMembersUp` before using this method.
The reason for that is that the cluster leader is preferably a
member with status Up or Leaving and that information can't
be determined from the `RoleName`.
Namespace:
Akka.Cluster.TestKit
Assembly:
Akka.Cluster.TestKit (in Akka.Cluster.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public RoleName RoleOfLeader(
ImmutableList<RoleName> nodesInCluster
)
member RoleOfLeader :
nodesInCluster : ImmutableList<RoleName> -> RoleName
Parameters
- nodesInCluster
- Type: ImmutableListRoleName
[Missing <param name="nodesInCluster"/> documentation for "M:Akka.Cluster.TestKit.MultiNodeClusterSpec.RoleOfLeader(System.Collections.Immutable.ImmutableList{Akka.Remote.TestKit.RoleName})"]
Return Value
Type:
RoleName[Missing <returns> documentation for "M:Akka.Cluster.TestKit.MultiNodeClusterSpec.RoleOfLeader(System.Collections.Immutable.ImmutableList{Akka.Remote.TestKit.RoleName})"]
See Also