Class ReactorWebSocketClientFactory
java.lang.Object
io.micronaut.reactor.http.client.websocket.ReactorWebSocketClientFactory
Factory for creating a
ReactorWebSocketClient
.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionReactorWebSocketClientFactory
(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReactorWebSocketClient
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 aReactorWebSocketClient
client at the given injection point.
-
Constructor Details
-
ReactorWebSocketClientFactory
public ReactorWebSocketClientFactory(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
webSocketClient
@Bean @Secondary protected ReactorWebSocketClient 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 aReactorWebSocketClient
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 Websocket Client
-