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

Method sendWhileCommit

ZezeJava/ZezeJava/src/main/java/Zeze/Game/Online.java:1056–1060  ·  view source on GitHub ↗
(long roleId, @NotNull Protocol<?> p)

Source from the content-addressed store, hash-verified

1054
1055 // 优先在上下文中的Online上发送
1056 public void sendWhileCommit(long roleId, @NotNull Protocol<?> p) {
1057 if (p instanceof Rpc && p.isRequest())
1058 throw new IllegalArgumentException(p.getClass().getName() + " is rpc. please use sendRpc/sendOnlineRpc");
1059 Transaction.whileCommit(() -> send(roleId, p));
1060 }
1061
1062 // 在指定Online上发送
1063 public void sendWhileCommitOnline(long roleId, @NotNull Protocol<?> p) {

Callers

nothing calls this directly

Calls 4

whileCommitMethod · 0.95
sendMethod · 0.95
getNameMethod · 0.65
isRequestMethod · 0.45

Tested by

no test coverage detected