java - JerseyClient 如何处理异步回调?
问题描述
我了解如何在泽西岛制作 InvocationCallback。但我无法获得 Jersey 使用哪个线程来处理这些回调请求。
它是每次使用 Executor Service 创建一个新线程还是使用一个池?
我正在研究泽西岛的文档
https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/async.html 并浏览了一些文档
如果我传递了 Async_thread_pool_size 那么这个池是否也会用于回调?
谢谢
解决方案
线程池是基于传递的线程池属性创建的,或者每次创建一个新线程 Jersey InvocationCallback Completed: 哪个线程用于调用这些方法
推荐阅读
- apache-kafka - JSONParseException 使用 Kafka REST API 读取数据
- mysql - 使用 CONCAT_WS 更新触发器后的 MySQL:为什么要在我不想要的地方插入换行符?
- compiler-errors - 这是D错误吗?(无法访问私有模板参数)
- shopify - Shopify api 变体选项标题在帖子上设置
- javascript - 使用 JavaScript。需要找到对称的顶点和轴
- python - 使用点符号扩展字典
- java - 使用 becker.jar 作为外部 jar 运行程序时如何修复 NullPointerException 错误?
- ios - NativeScript 找不到模块组件/主页
- android - YouTubePlayer 的 onClickListener
- javascript - .selectpicker('refresh') 不刷新 algolia 位置上的引导选择自动完成