我在现有代码中看到了这个配置,我想知道maxBufferSize =“ - 1”是什么意思,因为我没有看到互联网上的任何其他示例对该属性应用负值 . 谁能解释一下吗?
<asynchronous-processing-strategy name="AsynchronousProcessingStrategy" maxThreads="${MAX.PARALLEL.PROCESS}" minThreads="1" threadTTL="30000" poolExhaustedAction="WAIT" threadWaitTimeout="-1" maxBufferSize="-1" doc:name="Asynchronous Processing Strategy"/>
1 回答
取自https://docs.mulesoft.com/mule-runtime/3.8/flow-processing-strategies:
maxBufferSize
确定当池达到最大容量且池耗尽操作为WAIT时排队的请求数 . 缓冲区用作溢出 .-1将是无限数量的请求 .