public class MyEventSource extends Object implements org.eclipse.jetty.servlets.EventSource
Modifier and Type | Method and Description |
---|---|
boolean |
awaitClose(long timeout,
TimeUnit unit) |
void |
close() |
void |
emitComment(String comment) |
void |
emitData(String data) |
void |
emitNamedEvent(String name,
String data) |
void |
onClose() |
void |
onOpen(org.eclipse.jetty.servlets.EventSource.Emitter emitter) |
public void onOpen(org.eclipse.jetty.servlets.EventSource.Emitter emitter) throws IOException
onOpen
in interface org.eclipse.jetty.servlets.EventSource
IOException
public void onClose()
onClose
in interface org.eclipse.jetty.servlets.EventSource
public void emitData(String data)
public void emitComment(String comment)
public void close()
public boolean awaitClose(long timeout, TimeUnit unit)
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.