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

Method commit2

ZezeJava/ZezeJava/src/main/java/Zeze/Hot/HotAgent.java:140–147  ·  view source on GitHub ↗
(long id)

Source from the content-addressed store, hash-verified

138 }
139
140 public void commit2(long id) {
141 var hotManager = connector.TryGetReadySocket();
142 var r = new Commit2();
143 r.Argument.setDistributeId(id);
144 r.SendForWait(hotManager).await();
145 if (r.getResultCode() != 0)
146 throw new RuntimeException("commit2=" + IModule.getErrorCode(r.getResultCode()));
147 }
148
149 public void tryRollback(long id) {
150 var hotManager = connector.TryGetReadySocket();

Callers 1

packMethod · 0.80

Calls 6

getErrorCodeMethod · 0.95
awaitMethod · 0.65
TryGetReadySocketMethod · 0.45
setDistributeIdMethod · 0.45
SendForWaitMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected