我们正在使用quarkus框架,并且https://quarkus.io/guides/getting-started-reactive提到我们可以在方法、类上使用@Blocking来指示Quarkus在工作线程上调用此方法。
但是,我们如何准确地验证它正在使用工作线程呢?
发布于 2021-07-27 12:44:31
您可以调用io.quarkus.runtime.BlockingOperationControl.isBlockingAllowed()来查看是否允许阻塞线程。
如果您正确使用了@Blocking,则调用应返回true
https://stackoverflow.com/questions/68534624
复制相似问题