Class SseEventSourceImpl

java.lang.Object
org.jboss.resteasy.plugins.providers.sse.client.SseEventSourceImpl
All Implemented Interfaces:
jakarta.ws.rs.sse.SseEventSource, AutoCloseable

public class SseEventSourceImpl extends Object implements jakarta.ws.rs.sse.SseEventSource
  • Field Details

  • Constructor Details

    • SseEventSourceImpl

      public SseEventSourceImpl(jakarta.ws.rs.client.WebTarget target)
    • SseEventSourceImpl

      public SseEventSourceImpl(jakarta.ws.rs.client.WebTarget target, boolean open)
  • Method Details

    • open

      public void open()
      Specified by:
      open in interface jakarta.ws.rs.sse.SseEventSource
    • open

      public void open(String lastEventId)
    • open

      public void open(String lastEventId, String verb, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.MediaType... mediaTypes)
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface jakarta.ws.rs.sse.SseEventSource
    • register

      public void register(Consumer<jakarta.ws.rs.sse.InboundSseEvent> onEvent)
      Specified by:
      register in interface jakarta.ws.rs.sse.SseEventSource
    • register

      public void register(Consumer<jakarta.ws.rs.sse.InboundSseEvent> onEvent, Consumer<Throwable> onError)
      Specified by:
      register in interface jakarta.ws.rs.sse.SseEventSource
    • register

      public void register(Consumer<jakarta.ws.rs.sse.InboundSseEvent> onEvent, Consumer<Throwable> onError, Runnable onComplete)
      Specified by:
      register in interface jakarta.ws.rs.sse.SseEventSource
    • close

      public boolean close(long timeout, TimeUnit unit)
      Specified by:
      close in interface jakarta.ws.rs.sse.SseEventSource