Class TracingAsyncClientHttpRequestInterceptor
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.mvc.TracingAsyncClientHttpRequestInterceptor
- All Implemented Interfaces:
org.springframework.http.client.AsyncClientHttpRequestInterceptor
public final class TracingAsyncClientHttpRequestInterceptor
extends Object
implements org.springframework.http.client.AsyncClientHttpRequestInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.http.client.AsyncClientHttpRequestInterceptorcreate(CurrentTraceContext currentTraceContext, HttpClientHandler httpClientHandler) org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse>intercept(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.AsyncClientHttpRequestExecution execution)
-
Method Details
-
create
public static org.springframework.http.client.AsyncClientHttpRequestInterceptor create(CurrentTraceContext currentTraceContext, HttpClientHandler httpClientHandler) -
intercept
public org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> intercept(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.AsyncClientHttpRequestExecution execution) throws IOException - Specified by:
interceptin interfaceorg.springframework.http.client.AsyncClientHttpRequestInterceptor- Throws:
IOException
-