Class RxWebSocketClientFactory
java.lang.Object
io.micronaut.rxjava2.http.client.websockets.RxWebSocketClientFactory
Factory interface for creating RxJava 2
WebSocketClient
.- Since:
- 3.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionRxWebSocketClientFactory
(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected RxWebSocketClient
webSocketClient
(@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 aRxWebSocketClient
client at the given injection point.
-
Constructor Details
-
RxWebSocketClientFactory
public RxWebSocketClientFactory(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
webSocketClient
@Bean @Secondary protected RxWebSocketClient webSocketClient(@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 aRxWebSocketClient
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
-