【问题标题】:JerseyClient how async call backs are handled?Jersey Client 如何处理异步回调?
【发布时间】:2021-06-17 05:13:53
【问题描述】:

我了解如何在 Jersey 中进行 InvocationCallback。但我无法获得 Jersey 使用哪个线程来处理这些回调请求。

是每次使用Executor Service创建一个新线程还是使用Pool?

我正在研究泽西岛的文档

https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/async.html 并浏览了一些文档

https://eclipse-ee4j.github.io/jersey.github.io/apidocs/snapshot/jersey/org/glassfish/jersey/client/ClientProperties.html#ASYNC_THREADPOOL_SIZE

如果我传递了一个 Async_thread_pool_size 那么这个池是否也会用于回调?

谢谢

【问题讨论】:

    标签: java jersey jersey-client asynccallback


    【解决方案1】:

    线程池是基于传递的线程池属性创建的,或者是每次都创建一个新线程的线程池 Jersey InvocationCallback Completed: Which thread is used to invoke these methods

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-03
      • 2016-12-13
      • 2016-08-08
      • 2014-10-04
      • 2011-09-18
      • 1970-01-01
      相关资源
      最近更新 更多