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

Method call

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Task.java:189–201  ·  view source on GitHub ↗
(@NotNull Action0 action, @Nullable String name)

Source from the content-addressed store, hash-verified

187 }
188
189 public static void call(@NotNull Action0 action, @Nullable String name) {
190 var timeBegin = ZezeCounter.ENABLE ? System.nanoTime() : 0;
191 try {
192 action.run();
193 } catch (Exception ex) {
194 //noinspection ConstantValue,UnreachableCode
195 logger.error("{} exception:", name != null ? name : action != null ? action.getClass().getName() : "", ex);
196 } finally {
197 //noinspection ConstantValue
198 if (ZezeCounter.instance != null && action != null)
199 ZezeCounter.instance.addTaskRunTime(name != null ? name : action.getClass(), System.nanoTime() - timeBegin);
200 }
201 }
202
203 public static long call(@NotNull FuncLong func, @Nullable String name) {
204 var timeBegin = ZezeCounter.ENABLE ? System.nanoTime() : 0;

Callers 15

dispatchRpcResponseMethod · 0.95
ProcessDispatchMethod · 0.95
ProcessLoginRequestMethod · 0.95
ProcessReLoginRequestMethod · 0.95
dispatchProtocolMethod · 0.95
dispatchRpcResponseMethod · 0.95
dispatchProtocolMethod · 0.95
dispatchProtocolMethod · 0.95
tryStartApplyTaskMethod · 0.95
OnSocketHandshakeDoneMethod · 0.95
dispatchRpcResponseMethod · 0.95
processRequestMethod · 0.95

Calls 9

logAndStatisticsMethod · 0.95
getRootCauseMethod · 0.95
runMethod · 0.65
getNameMethod · 0.65
addTaskRunTimeMethod · 0.65
callMethod · 0.65
handleMethod · 0.65
getActionNameMethod · 0.65
isRequestMethod · 0.45

Tested by

no test coverage detected