Class Rx3WebSocketClientFactory

java.lang.Object
io.micronaut.rxjava3.http.client.websockets.Rx3WebSocketClientFactory

@Factory public class Rx3WebSocketClientFactory extends Object
Factory interface for creating RxJava 3 WebSocketClient.
Since:
2.1.0
Author:
James Kleeh
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rx3WebSocketClientFactory(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 Rx3WebSocketClient 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

    • 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 a Rx3WebSocketClient 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