Class ReactorHttpClientFactory

java.lang.Object
io.micronaut.reactor.http.client.ReactorHttpClientFactory

@Factory public class ReactorHttpClientFactory extends Object
Factory class for creating RxJava 3 clients.
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • ReactorHttpClientFactory

      public ReactorHttpClientFactory(io.micronaut.http.client.StreamingHttpClientRegistry<?> clientRegistry)
      Default constructor.
      Parameters:
      clientRegistry - The client registry
  • Method Details

    • streamingHttpClient

      @Bean @Secondary protected ReactorStreamingHttpClient streamingHttpClient(@Nullable @Nullable io.micronaut.inject.InjectionPoint<?> injectionPoint, @Parameter @Nullable @Nullable io.micronaut.http.client.LoadBalancer loadBalancer, @Parameter @Nullable @Nullable io.micronaut.http.client.HttpClientConfiguration configuration, @NonNull @NonNull io.micronaut.context.BeanContext beanContext)
      Injects a ReactorStreamingHttpClient client at the given injection point.
      Parameters:
      injectionPoint - The injection point
      loadBalancer - The load balancer to use (Optional)
      configuration - The configuration (Optional)
      beanContext - The bean context to use
      Returns:
      The Streaming HTTP Client