Interface Rx3SseClient

All Superinterfaces:
io.micronaut.http.client.sse.SseClient
All Known Implementing Classes:
BridgedRx3SseClient

public interface Rx3SseClient extends io.micronaut.http.client.sse.SseClient
RxJava 3 variation of the SseClient interface.
Since:
1.0.0
Author:
graemerocher
  • Method Summary

    Modifier and Type
    Method
    Description
    create(@Nullable URL url)
    Create a new Rx3SseClient.
    create(@Nullable URL url, @NonNull io.micronaut.http.client.HttpClientConfiguration configuration)
    Create a new Rx3SseClient with the specified configuration.
    <I> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>>
    eventStream(@NonNull io.micronaut.http.HttpRequest<I> request)
     
    <I, B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
    eventStream(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull io.micronaut.core.type.Argument<B> eventType)
     
    <I, B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
    eventStream(@NonNull io.micronaut.http.HttpRequest<I> request, @NonNull Class<B> eventType)
     
    <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
    eventStream(@NonNull String uri, @NonNull io.micronaut.core.type.Argument<B> eventType)
     
    <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>>
    eventStream(@NonNull String uri, @NonNull Class<B> eventType)
     

    Methods inherited from interface io.micronaut.http.client.sse.SseClient

    eventStream
  • Method Details

    • eventStream

      <I> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<io.micronaut.core.io.buffer.ByteBuffer<?>>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request)
      Specified by:
      eventStream in interface io.micronaut.http.client.sse.SseClient
    • eventStream

      <I, B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType)
      Specified by:
      eventStream in interface io.micronaut.http.client.sse.SseClient
    • eventStream

      <I, B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull io.micronaut.http.HttpRequest<I> request, @NonNull @NonNull Class<B> eventType)
      Specified by:
      eventStream in interface io.micronaut.http.client.sse.SseClient
    • eventStream

      <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull Class<B> eventType)
      Specified by:
      eventStream in interface io.micronaut.http.client.sse.SseClient
    • eventStream

      <B> io.reactivex.rxjava3.core.Flowable<io.micronaut.http.sse.Event<B>> eventStream(@NonNull @NonNull String uri, @NonNull @NonNull io.micronaut.core.type.Argument<B> eventType)
      Specified by:
      eventStream in interface io.micronaut.http.client.sse.SseClient
    • create

      static Rx3SseClient create(@Nullable @Nullable URL url)
      Create a new Rx3SseClient. Note that this method should only be used outside of the context of a Micronaut application. The returned Rx3SseClient is not subject to dependency injection. The creator is responsible for closing the client to avoid leaking connections. Within a Micronaut application use Inject to inject a client instead.
      Parameters:
      url - The base URL
      Returns:
      The client
      Since:
      2.1.0
    • create

      static Rx3SseClient create(@Nullable @Nullable URL url, @NonNull @NonNull io.micronaut.http.client.HttpClientConfiguration configuration)
      Create a new Rx3SseClient 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.1.0