public class MessageChannelMetricWriter extends Object implements MetricWriter
MetricWriter
that publishes the metric updates on a MessageChannel
.
The messages have the writer input (Delta
or Metric
) as payload, and
carry an additional header "metricName" with the name of the metric in it.Constructor and Description |
---|
MessageChannelMetricWriter(MessageChannel channel) |
public MessageChannelMetricWriter(MessageChannel channel)
public void increment(Delta<?> delta)
increment
in interface MetricWriter
public void set(Metric<?> value)
set
in interface MetricWriter
public void reset(String metricName)
reset
in interface MetricWriter
Copyright © 2014. All rights reserved.