public class EventProcessorLatencyMonitor extends Object implements MessageMonitor<EventMessage<?>>, com.codahale.metrics.MetricSet
MessageMonitor.MonitorCallback
Constructor and Description |
---|
EventProcessorLatencyMonitor()
Construct an
EventProcessorLatencyMonitor using a Clock.systemUTC() . |
EventProcessorLatencyMonitor(Clock clock)
Construct an
EventProcessorLatencyMonitor using the given clock . |
Modifier and Type | Method and Description |
---|---|
Map<String,com.codahale.metrics.Metric> |
getMetrics() |
MessageMonitor.MonitorCallback |
onMessageIngested(EventMessage<?> message)
Takes a message and returns a callback that should be used
to inform the message monitor about the result of processing the message
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessagesIngested
public EventProcessorLatencyMonitor()
EventProcessorLatencyMonitor
using a Clock.systemUTC()
.public EventProcessorLatencyMonitor(Clock clock)
EventProcessorLatencyMonitor
using the given clock
.clock
- defines the Clock
used by this MessageMonitor
implementationpublic MessageMonitor.MonitorCallback onMessageIngested(EventMessage<?> message)
MessageMonitor
onMessageIngested
in interface MessageMonitor<EventMessage<?>>
message
- the message to monitorCopyright © 2010–2022. All rights reserved.