首页 > 解决方案 > maxBufferSize="-1" 在 Mule 中是什么意思?

问题描述

我在现有代码中看到了这个配置,我想知道 maxBufferSize="-1" 是什么意思,因为我在 Internet 上没有看到任何其他示例将负值应用于此属性。谁能解释一下?

<asynchronous-processing-strategy name="AsynchronousProcessingStrategy" maxThreads="${MAX.PARALLEL.PROCESS}" minThreads="1" threadTTL="30000" poolExhaustedAction="WAIT" threadWaitTimeout="-1" maxBufferSize="-1" doc:name="Asynchronous Processing Strategy"/>

标签: asynchronousmulemule-esb

解决方案


取自https://docs.mulesoft.com/mule-runtime/3.8/flow-processing-strategies

maxBufferSize确定当池达到最大容量并且池耗尽操作为 WAIT 时排队的请求数。缓冲区用作溢出。

-1 将是无限数量的请求。


推荐阅读