213.6. groupInterval 샘플이 있는 처리량 로거
이 경로는 메시지 통계가 10 씩 기록되고 메시지 트래픽이 없는 경우에도 초기 60s 지연과 통계가 표시되어야 합니다.
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"