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

Method getCurrentCount

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Test.java:164–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 private long getCurrentCount() {
165 while (true) {
166 try {
167 var r = new GetCount();
168 agent.sendForWait(r).await();
169 if (!r.isTimeout() && r.getResultCode() == 0)
170 return r.Result.count;
171 } catch (Exception ignored) {
172 }
173 }
174 }
175
176 private void errorsAdd(long resultCode) {
177 if (resultCode == 0)

Callers 1

checkCurrentCountMethod · 0.95

Calls 4

sendForWaitMethod · 0.80
awaitMethod · 0.65
isTimeoutMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected