Class MyEventSource

java.lang.Object
org.eclipse.microprofile.rest.client.tck.sse.MyEventSource
All Implemented Interfaces:
org.eclipse.jetty.servlets.EventSource

public class MyEventSource extends Object implements org.eclipse.jetty.servlets.EventSource
  • Method Details

    • onOpen

      public void onOpen(org.eclipse.jetty.servlets.EventSource.Emitter emitter) throws IOException
      Specified by:
      onOpen in interface org.eclipse.jetty.servlets.EventSource
      Throws:
      IOException
    • onClose

      public void onClose()
      Specified by:
      onClose in interface org.eclipse.jetty.servlets.EventSource
    • emitData

      public void emitData(String data)
    • emitComment

      public void emitComment(String comment)
    • emitNamedEvent

      public void emitNamedEvent(String name, String data)
    • close

      public void close()
    • awaitClose

      public boolean awaitClose(long timeout, TimeUnit unit)