Apache camel Apache Camel获取线程池队列大小
我有如下线程池配置文件:Apache camel Apache Camel获取线程池队列大小,apache-camel,Apache Camel,我有如下线程池配置文件: <threadPoolProfile id="myThrottler" poolSize="5" maxPoolSize="20" maxQueueSize="1000" rejectedPolicy="CallerRuns"/> 我正在路
<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>
5.
我可以通过
我可以在线程池中使用获取队列大小吗 无法从使用简单语言的
获取线程池队列大小
但是您可以使用JMX从线程池中获取度量,例如队列大小等