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

Method foreach

ZezeJava/ZezeJava/src/main/java/Zeze/Net/Service.java:771–774  ·  view source on GitHub ↗
(@NotNull Action1<@NotNull AsyncSocket> action)

Source from the content-addressed store, hash-verified

769 // 还是不直接暴露内部的容器。提供这个方法给外面用。以后如果有问题,可以改这里。
770
771 public final void foreach(@NotNull Action1<@NotNull AsyncSocket> action) throws Exception {
772 for (var socket : socketMap)
773 action.run(socket);
774 }
775
776 public @NotNull KV<@NotNull String, @NotNull Integer> getOneAcceptorAddress() {
777 var ipPort = KV.create("", 0);

Callers 1

checkKeepAliveMethod · 0.95

Calls 1

runMethod · 0.65

Tested by

no test coverage detected