Interface SseClientFactory


  • public interface SseClientFactory
    A factory to create Server Sent Event clients.
    Since:
    3.0.0
    • Method Detail

      • createSseClient

        @NonNull
        SseClient createSseClient​(@Nullable
                                  java.net.URL url)
        Create a new SseClient. Note that this method should only be used outside of the context of an application. Within Micronaut use Inject to inject a client instead
        Parameters:
        url - The base URL
        Returns:
        The client
      • createSseClient

        @NonNull
        SseClient createSseClient​(@Nullable
                                  java.net.URL url,
                                  @NonNull
                                  HttpClientConfiguration configuration)
        Create a new SseClient with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut use Inject to inject a client instead
        Parameters:
        url - The base URL
        configuration - the client configuration
        Returns:
        The client
        Since:
        2.2.0