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

io.smallrye.reactive.messaging.observation.ObservationContext Maven / Gradle / Ivy

The newest version!
package io.smallrye.reactive.messaging.observation;

/**
 * The per-channel context of the Message observation.
 * It is created at the observation initialization by-channel and included at each message observation calls.
 */
public interface ObservationContext {

    /**
     * Default no-op observation context
     */
    ObservationContext DEFAULT = observation -> {

    };

    /**
     * Called after observation is completed.
     *
     * @param observation the completed message observation
     */
    void complete(MessageObservation observation);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy