213.6. groupInterval 샘플이 있는 처리량 로거
이 경로는 메시지 트래픽이 없는 경우에도 초기 60s 지연 및 통계가 표시된 메시지 통계가 10분마다 기록됩니다.
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"