2014-07-03 45 views
0

我有線程池的個人資料如下圖所示:Apache的駱駝獲得線程池隊列大小

<threadPoolProfile id="myThrottler" 
          poolSize="5" 
          maxPoolSize="20" 
          maxQueueSize="1000" 
          rejectedPolicy="CallerRuns"/> 

我使用的路線此線程池:

<route> 
     <from uri="stream:in"/> 
     <throttle timePeriodMillis="2000" asyncDelayed="true" executorServiceRef="myThrottler"> 
       <constant>5</constant> 
      </throttle> 
      <log message="${threadName}"/> 
     </route> 

我可以<log message="${threadName}"/>

得到線程名

我可以在線程池中使用隊列大小嗎?

回答