Package io.micronaut.rxjava2.http.client
Class RxStreamingHttpClientFactory
java.lang.Object
io.micronaut.rxjava2.http.client.RxStreamingHttpClientFactory
Factory interface for creating clients.
- Since:
- 2.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionRxStreamingHttpClientFactory
(io.micronaut.http.client.StreamingHttpClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected RxStreamingHttpClient
streamingHttpClient
(@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 aRxStreamingHttpClient
client at the given injection point.
-
Constructor Details
-
RxStreamingHttpClientFactory
public RxStreamingHttpClientFactory(io.micronaut.http.client.StreamingHttpClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
streamingHttpClient
@Bean @Secondary protected RxStreamingHttpClient 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, io.micronaut.context.BeanContext beanContext) Injects aRxStreamingHttpClient
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 Streaming HTTP Client
-