Package io.quarkus.artemis.jms.runtime
Class ArtemisJmsRecorder
java.lang.Object
io.quarkus.artemis.jms.runtime.ArtemisJmsRecorder
-
Constructor Summary
ConstructorsConstructorDescriptionArtemisJmsRecorder(io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfigs buildTimeConfigs, io.quarkus.runtime.RuntimeValue<io.quarkus.artemis.core.runtime.ArtemisRuntimeConfigs> runtimeConfigs) -
Method Summary
Modifier and TypeMethodDescriptioncomposeWrappers(Function<jakarta.jms.ConnectionFactory, Object> wrapper1, Function<jakarta.jms.ConnectionFactory, Object> wrapper2) Composes multiple ConnectionFactory wrappers into a single wrapper.Supplier<jakarta.jms.ConnectionFactory>getConnectionFactoryProducer(String name, Function<jakarta.jms.ConnectionFactory, Object> wrapper) getOpenTelemetryWrapper(Optional<io.quarkus.runtime.RuntimeValue<Boolean>> otelEnabled) Creates a wrapper function that adds OpenTelemetry tracing to ConnectionFactory.
-
Constructor Details
-
ArtemisJmsRecorder
public ArtemisJmsRecorder(io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfigs buildTimeConfigs, io.quarkus.runtime.RuntimeValue<io.quarkus.artemis.core.runtime.ArtemisRuntimeConfigs> runtimeConfigs)
-
-
Method Details
-
getDefaultWrapper
-
composeWrappers
public Function<jakarta.jms.ConnectionFactory,Object> composeWrappers(Function<jakarta.jms.ConnectionFactory, Object> wrapper1, Function<jakarta.jms.ConnectionFactory, Object> wrapper2) Composes multiple ConnectionFactory wrappers into a single wrapper. Wrappers are applied in order: wrapper2(wrapper1(cf))- Parameters:
wrapper1- the first wrapper to applywrapper2- the second wrapper to apply on top of the first- Returns:
- a composed wrapper function
-
getConnectionFactoryProducer
-
getOpenTelemetryWrapper
public Function<jakarta.jms.ConnectionFactory,Object> getOpenTelemetryWrapper(Optional<io.quarkus.runtime.RuntimeValue<Boolean>> otelEnabled) Creates a wrapper function that adds OpenTelemetry tracing to ConnectionFactory. The wrapping is delegated to ArtemisJmsOpenTelemetryWrapper (which is only registered as a CDI bean when OpenTelemetry is on the classpath) to avoid loading OTel classes in the recorder when OTel is not present.- Parameters:
otelEnabled- Runtime flag indicating if OpenTelemetry SDK is enabled- Returns:
- a wrapper function
-