public static class MessageTimerMonitor.Builder extends Object
MessageTimerMonitor.
 
 The Clock is defaulted to a Clock.defaultClock() and the reservoirFactory defaults to
 creating a ExponentiallyDecayingReservoir.
| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
MessageTimerMonitor | 
build()
Initializes a  
MessageTimerMonitor as specified through this Builder. | 
MessageTimerMonitor.Builder | 
clock(com.codahale.metrics.Clock clock)
Sets the  
Clock used to define the processing duration of a given message being pushed through this
 MessageMonitor. | 
MessageTimerMonitor.Builder | 
reservoirFactory(Supplier<com.codahale.metrics.Reservoir> reservoirFactory)
Sets factory method creating a  
Reservoir to be used by the Timer instances created by this
 MessageMonitor. | 
protected void | 
validate()
Validate whether the fields contained in this Builder as set accordingly. 
 | 
public MessageTimerMonitor.Builder clock(com.codahale.metrics.Clock clock)
Clock used to define the processing duration of a given message being pushed through this
 MessageMonitor. Defaults to the Clock.defaultClock().clock - the Clock used to define the processing duration of a given messagepublic MessageTimerMonitor.Builder reservoirFactory(Supplier<com.codahale.metrics.Reservoir> reservoirFactory)
Reservoir to be used by the Timer instances created by this
 MessageMonitor. Defaults to a Supplier of ExponentiallyDecayingReservoir.reservoirFactory - a factory method creating a Reservoir to be used by the Timer
                         instances created by this MessageMonitorpublic MessageTimerMonitor build()
MessageTimerMonitor as specified through this Builder.MessageTimerMonitor as specified through this Builderprotected void validate()
AxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
                                    specificationsCopyright © 2010–2025. All rights reserved.