Package io.micronaut.http.context
Class ServerRequestTracingPublisher
java.lang.Object
io.micronaut.http.context.ServerRequestTracingPublisher
- All Implemented Interfaces:
Publishers.MicronautPublisher<MutableHttpResponse<?>>
,Publisher<MutableHttpResponse<?>>
@Internal
public final class ServerRequestTracingPublisher
extends Object
implements Publishers.MicronautPublisher<MutableHttpResponse<?>>
A reactive streams publisher that instruments an existing publisher ensuring execution is
wrapped in a
ServerRequestContext
.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionServerRequestTracingPublisher
(HttpRequest<?> request, Publisher<MutableHttpResponse<?>> actual) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(Subscriber<? super MutableHttpResponse<?>> subscriber)
-
Constructor Details
-
ServerRequestTracingPublisher
public ServerRequestTracingPublisher(HttpRequest<?> request, Publisher<MutableHttpResponse<?>> actual) Creates a new instance.- Parameters:
request
- The requestactual
- The target publisher
-
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfacePublisher<MutableHttpResponse<?>>
-