Example usage for org.springframework.http.client AsyncClientHttpRequestFactory interface-usage

List of usage examples for org.springframework.http.client AsyncClientHttpRequestFactory interface-usage

Introduction

In this page you can find the example usage for org.springframework.http.client AsyncClientHttpRequestFactory interface-usage.

Usage

From source file com.yoho.core.trace.instrument.web.client.async.TraceAsyncClientHttpRequestFactoryWrapper.java

/**
 * Wrapper that adds trace related headers to the created {@link AsyncClientHttpRequest}
 * and to the {@link ClientHttpRequest}
 *
 * @author Marcin Grzejszczak
 * @author Spencer Gibb

From source file org.springframework.cloud.sleuth.instrument.web.client.MultipleAsyncRestTemplateTests.java

class CustomAsyncClientHttpRequestFactory implements AsyncClientHttpRequestFactory {

    private final SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();

    public CustomAsyncClientHttpRequestFactory() {
        this.factory.setTaskExecutor(new SimpleAsyncTaskExecutor());