Class FindLeaderReply
java.lang.Object
org.opendaylight.controller.cluster.raft.client.messages.FindLeaderReply
- All Implemented Interfaces:
Serializable
Reply to
FindLeader
message, containing the address of the leader actor, as known to the raft actor which
sent the message. If the responding actor does not have knowledge of the leader, leaderActorPath()
will
return null
.
This message is intended for testing purposes only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFindLeaderReply
(@Nullable String leaderActorPath) Default constructor.FindLeaderReply
(@Nullable org.apache.pekko.actor.ActorPath leaderActorPath) Convenience constructor translating anActorPath
to its string form. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.@Nullable String
Returns the actor reference to the leader, ornull
if no leader is known.
-
Constructor Details
-
FindLeaderReply
Default constructor. Takes anActorPath
in its string form.- Parameters:
leaderActorPath
- anActorPath
'stoString()
-
FindLeaderReply
public FindLeaderReply(@Nullable org.apache.pekko.actor.ActorPath leaderActorPath) Convenience constructor translating anActorPath
to its string form.- Parameters:
leaderActorPath
- the optionalActorPath
-
-
Method Details
-
leaderActorPath
Returns the actor reference to the leader, ornull
if no leader is known.- Returns:
- the actor reference to the leader, or
null
if no leader is known
-
getLeaderActor
Deprecated, for removal: This API element is subject to removal in a future version.UseleaderActorPath()
instead.return the actor reference to the leader, or empty if no leader is known.- Returns:
- the actor reference to the leader, or empty if no leader is known
-
leaderActorPath()
instead.