Class ReactorWebSocketClientFactory

java.lang.Object
io.micronaut.reactor.http.client.websocket.ReactorWebSocketClientFactory

@Factory public class ReactorWebSocketClientFactory extends Object
Factory for creating a ReactorWebSocketClient.
Since:
2.1.0
Author:
James Kleeh
  • 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 a ReactorWebSocketClient client at the given injection point.
      Parameters:
      injectionPoint - The injection point
      loadBalancer - The load balancer to use (Optional)
      configuration - The configuration (Optional)
      beanContext - The bean context to use
      Returns:
      The Websocket Client