Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache camel Apache Camel获取线程池队列大小_Apache Camel - Fatal编程技术网

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从线程池中获取度量,例如队列大小等