Interface StreamingHttpClientRegistry<S extends StreamingHttpClient>

Type Parameters:
S - Reactive Streaming HTTP Client
All Known Implementing Classes:
DefaultNettyHttpClientRegistry

public interface StreamingHttpClientRegistry<S extends StreamingHttpClient>
Interface for managing the construction and lifecycle of instances of StreamingHttpClient clients.
Since:
3.0.0
Author:
Sergio del Amo
  • Method Details

    • resolveStreamingHttpClient

      @NonNull S resolveStreamingHttpClient(@Nullable @Nullable InjectionPoint<?> injectionPoint, @Nullable @Nullable LoadBalancer loadBalancer, @Nullable @Nullable HttpClientConfiguration configuration, @NonNull @NonNull BeanContext beanContext)
      Resolves a StreamingHttpClient for 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
    • getStreamingHttpClient

      @NonNull S getStreamingHttpClient(@NonNull @NonNull AnnotationMetadata annotationMetadata)
      Return the client for the given annotation metadata.
      Parameters:
      annotationMetadata - The annotation metadata.
      Returns:
      The client
    • getDefaultStreamingHttpClient

      default S getDefaultStreamingHttpClient()
      Returns:
      Return the default Streaming HTTP client.
    • disposeClient

      void disposeClient(AnnotationMetadata annotationMetadata)
      Dispose of the client defined by the given metadata.
      Parameters:
      annotationMetadata - The annotation metadata