Mule 线程配置文件和 threadWaitTimeout
Mule threading profile and threadWaitTimeout
当我阅读 Mule 线程配置文件时,我遇到了 threadWaitTimeout
Mule 文档说:
How long to wait in milliseconds when the pool exhausted action is WAIT. If the value is negative, it will wait indefinitely
,一处
和
How long to wait for a thread to become available
,在另一个地方。
会发生什么
- 如果 Receiver 的线程配置文件设置为包括
threadWaitTimeout=1000
- 如果 Flow 的线程配置文件设置为包括
threadWaitTimeout=1000
- 如果 Dispatcher 的线程配置文件设置为包含
threadWaitTimeout=1000
receiver、flow和dispatcher是三个不同的线程池:
接收者使用线程,流使用线程,调度器使用线程。每一个都处于执行的不同阶段。为了更好地理解它,我建议阅读 docs you mention and the fine tuning chapter of Mule In Action 2ed.
当我阅读 Mule 线程配置文件时,我遇到了 threadWaitTimeout
Mule 文档说:
How long to wait in milliseconds when the pool exhausted action is WAIT. If the value is negative, it will wait indefinitely
,一处
和
How long to wait for a thread to become available
,在另一个地方。
会发生什么
- 如果 Receiver 的线程配置文件设置为包括
threadWaitTimeout=1000
- 如果 Flow 的线程配置文件设置为包括
threadWaitTimeout=1000
- 如果 Dispatcher 的线程配置文件设置为包含
threadWaitTimeout=1000
receiver、flow和dispatcher是三个不同的线程池:
接收者使用线程,流使用线程,调度器使用线程。每一个都处于执行的不同阶段。为了更好地理解它,我建议阅读 docs you mention and the fine tuning chapter of Mule In Action 2ed.