219.10.2. headers

메시지 헤더는 Metrics 구성 요소 URI에 지정된 작업 값을 재정의하는 데 사용할 수 있습니다.

이름설명예상 유형

CamelMetricsTimerAction

URI의 타이머 작업 재정의

org.apache.camel.component.metrics.timer.TimerEndpoint.TimerAction

// sets timer action using header
from("direct:in")
    .setHeader(MetricsConstants.HEADER_TIMER_ACTION, TimerAction.start)
    .to("metrics:timer:simple.timer")
    .to("direct:out");