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 TypeMethodDescriptionjakarta.ws.rs.sse.SseEventSource.BuildernewBuilder(jakarta.ws.rs.client.WebTarget target) Create a newSseEventSource.Builderjakarta.ws.rs.sse.SseEventSourcenewSource(jakarta.ws.rs.client.WebTarget target) Create a newSseEventSource
-
Method Details
-
newBuilder
jakarta.ws.rs.sse.SseEventSource.Builder newBuilder(jakarta.ws.rs.client.WebTarget target) Create a newSseEventSource.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 newSseEventSource- Parameters:
target- The web target to consume events from- Returns:
- a configured event source
-