Class Rx3WebSocketClientFactory
java.lang.Object
io.micronaut.rxjava3.http.client.websockets.Rx3WebSocketClientFactory
Factory interface for creating RxJava 3
WebSocketClient
.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionRx3WebSocketClientFactory
(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Rx3WebSocketClient
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 aRx3WebSocketClient
client at the given injection point.
-
Constructor Details
-
Rx3WebSocketClientFactory
public Rx3WebSocketClientFactory(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
webSocketClient
@Bean @Secondary protected Rx3WebSocketClient 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 aRx3WebSocketClient
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
-