2015-01-21 49 views
0

雖然我讀騾子線程簡介我碰到threadWaitTimeout來抓這騾子醫生說:騾子線程輪廓和threadWaitTimeout

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,在另一個地方。

會發生什麼

  • 如果接收的線程配置文件設置爲包括threadWaitTimeout=1000
  • 如果流量的線程配置文件設置爲包括threadWaitTimeout=1000
  • 如果調度的線程配置文件設置爲包括threadWaitTimeout=1000

回答

0

接收器,流和調度器是三個不同的線程池:

threadpools

接收方使用線程,流使用線程和調度程序使用線程。每個人在執行的不同階段。爲了更好地理解它,我建議您閱讀您提到的docsMule In Action 2ed的微調章節。