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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.ws.rs.sse.SseEventSource.Builder newBuilder​(javax.ws.rs.client.WebTarget target)
      Create a new SseEventSource.Builder
      javax.ws.rs.sse.SseEventSource newSource​(javax.ws.rs.client.WebTarget target)
      Create a new SseEventSource
    • Method Detail

      • newBuilder

        javax.ws.rs.sse.SseEventSource.Builder newBuilder​(javax.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

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