asynchronous - 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"/>
解决方案
取自https://docs.mulesoft.com/mule-runtime/3.8/flow-processing-strategies:
maxBufferSize
确定当池达到最大容量并且池耗尽操作为 WAIT 时排队的请求数。缓冲区用作溢出。
-1 将是无限数量的请求。
推荐阅读
- javascript - 在 JS 中对 json 数组使用 find 方法时仅发送键值
- flutter - “字符串”类型不是“值”的“文件”类型的子类型
- c# - Selenium ChromeDriver 发布后无法导航 URL
- windows - 在 Windows 上编译时出现 Apache thrift 错误
- machine-learning - 对训练或验证分区执行交叉验证以调整参数
- azure - Azure-从警报中提取日志值
- azure-web-app-service - 根据请求检查大多数 CPU 使用率/时间(Azure appservice/应用程序洞察力)
- tfs - CI 如何确定它应该运行构建?
- php - Laravel - 在 where 子句查询中计算 (Eloquent)
- django - ModuleNotFoundError:没有名为“注册”的模块