(@NotNull Action1<@NotNull AsyncSocket> action)
| 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); |