Class Rx3ProxyHttpClientFactory
java.lang.Object
io.micronaut.rxjava3.http.client.proxy.Rx3ProxyHttpClientFactory
Factory interface for creating
SseClient
.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionRx3ProxyHttpClientFactory
(io.micronaut.http.client.ProxyHttpClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Rx3ProxyHttpClient
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 aRx3ProxyHttpClient
client at the given injection point.
-
Constructor Details
-
Rx3ProxyHttpClientFactory
public Rx3ProxyHttpClientFactory(io.micronaut.http.client.ProxyHttpClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
sseClient
@Bean @Secondary protected Rx3ProxyHttpClient 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 aRx3ProxyHttpClient
client at the given injection point.- Parameters:
injectionPoint
- The injection pointloadBalancer
- The load balancer to use (Optional)configuration
- The configuration (Optional)beanContext
- The bean context to use- Returns:
- The SSE HTTP Client
-