Package io.micronaut.http.client.sse
Interface SseClientFactory
- All Known Implementing Classes:
NettyHttpClientFactory
public interface SseClientFactory
A factory to create Server Sent Event clients.
- Since:
- 3.0.0
- Author:
- James Kleeh, Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptioncreateSseClient(@Nullable URL url) Create a newSseClient.createSseClient(@Nullable URL url, @NonNull HttpClientConfiguration configuration) Create a newSseClientwith the specified configuration.
-
Method Details
-
createSseClient
Create a newSseClient. Note that this method should only be used outside the context of an application. Within Micronaut useInjectto inject a client instead- Parameters:
url- The base URL- Returns:
- The client
-
createSseClient
@NonNull @NonNull SseClient createSseClient(@Nullable @Nullable URL url, @NonNull @NonNull HttpClientConfiguration configuration) Create a newSseClientwith the specified configuration. Note that this method should only be used outside the context of an application. Within Micronaut useInjectto inject a client instead- Parameters:
url- The base URLconfiguration- the client configuration- Returns:
- The client
- Since:
- 2.2.0
-