Class RxProxyHttpClientFactory

java.lang.Object
io.micronaut.rxjava2.http.client.proxy.RxProxyHttpClientFactory

@Factory public class RxProxyHttpClientFactory extends Object
Factory interface for creating SseClient.
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Summary

    Constructors
    Constructor
    Description
    RxProxyHttpClientFactory(io.micronaut.http.client.ProxyHttpClientRegistry<?> clientRegistry)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    sseClient(@Nullable io.micronaut.inject.InjectionPoint<?> injectionPoint, @Nullable io.micronaut.http.client.LoadBalancer loadBalancer, @Nullable io.micronaut.http.client.HttpClientConfiguration configuration, io.micronaut.context.BeanContext beanContext)
    Injects a RxProxyHttpClient client at the given injection point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RxProxyHttpClientFactory

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

    • sseClient

      @Bean @Secondary protected RxProxyHttpClient sseClient(@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, io.micronaut.context.BeanContext beanContext)
      Injects a RxProxyHttpClient 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 SSE HTTP Client