Class ReactorSseClientFactory
java.lang.Object
io.micronaut.reactor.http.client.sse.ReactorSseClientFactory
Factory interface for creating
SseClient
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionReactorSseClientFactory
(io.micronaut.http.client.sse.SseClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReactorSseClient
sseClient
(@Nullable io.micronaut.inject.InjectionPoint<?> injectionPoint, @Nullable io.micronaut.http.client.LoadBalancer loadBalancer, @Nullable io.micronaut.http.client.HttpClientConfiguration configuration, @NonNull io.micronaut.context.BeanContext beanContext) Injects aReactorSseClient
client at the given injection point.
-
Constructor Details
-
ReactorSseClientFactory
public ReactorSseClientFactory(io.micronaut.http.client.sse.SseClientRegistry<?> clientRegistry) Default constructor.- Parameters:
clientRegistry
- The client registry
-
-
Method Details
-
sseClient
@Bean @Secondary protected ReactorSseClient sseClient(@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, @NonNull @NonNull io.micronaut.context.BeanContext beanContext) Injects aReactorSseClient
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 SSE HTTP Client
-