Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我从 REPL 调用 (shutdown-agents),然后稍后尝试使用代理,我会收到一个异常,说代理池不可用(当然!)。问题是,如何重新启动代理线程池,而不必重新启动 REPL 并丢失我的所有状态?
谢谢!
shutdown-agents意味着在您退出 JVM 之前运行。据我所知,之后您无法重新启动它们。参见例如这里和这里。
shutdown-agents