public class MicrometerMessageHistoryFactory
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.StaticService, org.apache.camel.NonManagedService, org.apache.camel.spi.MessageHistoryFactory
MicrometerMessageHistory as message history implementation.| Constructor and Description |
|---|
MicrometerMessageHistoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
TimeUnit |
getDurationUnit() |
io.micrometer.core.instrument.MeterRegistry |
getMeterRegistry() |
MicrometerMessageHistoryNamingStrategy |
getNamingStrategy() |
String |
getNodePattern() |
boolean |
isCopyMessage() |
boolean |
isPrettyPrint() |
org.apache.camel.MessageHistory |
newMessageHistory(String routeId,
org.apache.camel.NamedNode namedNode,
long timestamp,
org.apache.camel.Exchange exchange) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setCopyMessage(boolean copyMessage) |
void |
setDurationUnit(TimeUnit durationUnit)
Sets the time unit to use for timing the duration of processing a message in the route
|
void |
setMeterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)
To use a specific
MeterRegistry instance. |
void |
setNamingStrategy(MicrometerMessageHistoryNamingStrategy namingStrategy)
Sets the naming strategy for message history meter names
|
void |
setNodePattern(String nodePattern) |
void |
setPrettyPrint(boolean prettyPrint)
Whether to use pretty print when outputting JSon
|
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic io.micrometer.core.instrument.MeterRegistry getMeterRegistry()
public void setMeterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)
MeterRegistry instance.
If no instance has been configured, then Camel will create a shared instance to be used.public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
public TimeUnit getDurationUnit()
public void setDurationUnit(TimeUnit durationUnit)
public MicrometerMessageHistoryNamingStrategy getNamingStrategy()
public void setNamingStrategy(MicrometerMessageHistoryNamingStrategy namingStrategy)
public boolean isCopyMessage()
isCopyMessage in interface org.apache.camel.spi.MessageHistoryFactorypublic void setCopyMessage(boolean copyMessage)
setCopyMessage in interface org.apache.camel.spi.MessageHistoryFactorypublic String getNodePattern()
getNodePattern in interface org.apache.camel.spi.MessageHistoryFactorypublic void setNodePattern(String nodePattern)
setNodePattern in interface org.apache.camel.spi.MessageHistoryFactorypublic org.apache.camel.MessageHistory newMessageHistory(String routeId, org.apache.camel.NamedNode namedNode, long timestamp, org.apache.camel.Exchange exchange)
newMessageHistory in interface org.apache.camel.spi.MessageHistoryFactoryprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
doStop in class org.apache.camel.support.service.BaseServiceApache Camel