问题描述
我了解如何在 Jersey 中创建 InvocationCallback。但是我不知道 Jersey 会使用哪个线程来处理这些回调请求。
每次使用 Executor Service 还是使用 Pool 都会创建一个新线程?
我正在查看 Jersey 文档
https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/async.html 并浏览了一些文档
如果我传递一个 Async_thread_pool_size 那么这个池是否也用于回调?
谢谢
解决方法
线程池是基于传递的线程池属性创建的,或者是每次创建一个新线程的线程池 Jersey InvocationCallback Completed: Which thread is used to invoke these methods