Interface SseEventSourceFactory


@ProviderType public interface SseEventSourceFactory
A factory for SseEventSource instances.

Bundles may obtain an instance of a SseEventSourceFactory using the service registry. This service may then be used to construct SseEventSource instances for the supplied WebTarget.

  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.sse.SseEventSource.Builder
    newBuilder(jakarta.ws.rs.client.WebTarget target)
    Create a new SseEventSource.Builder
    jakarta.ws.rs.sse.SseEventSource
    newSource(jakarta.ws.rs.client.WebTarget target)
    Create a new SseEventSource
  • Method Details

    • newBuilder

      jakarta.ws.rs.sse.SseEventSource.Builder newBuilder(jakarta.ws.rs.client.WebTarget target)
      Create a new SseEventSource.Builder
      Parameters:
      target - The web target to consume events from
      Returns:
      a builder which can be used to further configure the event source
    • newSource

      jakarta.ws.rs.sse.SseEventSource newSource(jakarta.ws.rs.client.WebTarget target)
      Create a new SseEventSource
      Parameters:
      target - The web target to consume events from
      Returns:
      a configured event source