203.6. groupInterval サンプルでのスループットロガー
このルートにより、メッセージ統計が 10s ごとにログに記録され、メッセージトラフィックがなくても統計が表示されます。
from("activemq:orders").
to("log:com.mycompany.order?level=DEBUG&groupInterval=10000&groupDelay=60000&groupActiveOnly=false").to("bean:processOrder");
以下のログに記録されます。
"Received: 1000 new messages, with total 2000 so far. Last group took: 10000 millis which is: 100 messages per second. average: 100"