MCPcopy Create free account
hub / github.com/e2wugui/zeze / getLeaderAsync

Method getLeaderAsync

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Agent.java:593–595  ·  view source on GitHub ↗
(ToLongFunction<GetLeader> handle)

Source from the content-addressed store, hash-verified

591 }
592
593 public void getLeaderAsync(ToLongFunction<GetLeader> handle) {
594 send(new GetLeader(), (p) -> handle.applyAsLong((GetLeader)p));
595 }
596
597 public static Connector waitForLeader(RaftConfig raftConfig) {
598 return waitForLeader(raftConfig, 0, null);

Callers 1

waitForLeaderMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected