Class RxWebSocketClientFactory

java.lang.Object
io.micronaut.rxjava2.http.client.websockets.RxWebSocketClientFactory

@Factory public class RxWebSocketClientFactory extends Object
Factory interface for creating RxJava 2 WebSocketClient.
Since:
3.0.0
Author:
Sergio del Amo
  • Constructor Summary

    Constructors
    Constructor
    Description
    RxWebSocketClientFactory(io.micronaut.websocket.WebSocketClientRegistry<?> clientRegistry)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a RxWebSocketClient client at the given injection point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a RxWebSocketClient 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 Streaming HTTP Client