All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mantledillusion.metrics.trail.TrailBehaviourMode Maven / Gradle / Ivy

package com.mantledillusion.metrics.trail;

/**
 * Determines modes how to handle {@link MetricsTrail}s on incoming / outgoing messages.
 */
public enum TrailBehaviourMode {

    /**
     * - Incoming: throw an {@link Exception} if the message does not contain a parsable {@link java.util.UUID} in the
     * JMS correlation ID header.
* - Outgoing: throw an {@link Exception} when the current {@link Thread} does not have a {@link MetricsTrail}. */ STRICT, /** * - Incoming: Start a {@link MetricsTrail} with a random {@link java.util.UUID} if the message does not contain * a parsable {@link java.util.UUID} in the JMS correlation ID header.
* - Outgoing: Set a random {@link java.util.UUID} to the JMS correlation ID header when the current {@link Thread} * does not have a {@link MetricsTrail}. */ LENIENT, /** * - Incoming: Do not start a {@link MetricsTrail} if the message does not contain a parsable * {@link java.util.UUID} in the JMS correlation ID header.
* - Outgoing: Leave the JMS correlation ID header empty when the current {@link Thread} does not have a * {@link MetricsTrail}. */ OPTIONAL }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy