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.EventSourceIOExceptionpublic void onClose()
onClose in interface org.eclipse.jetty.servlets.EventSourcepublic void emitData(String data)
public void emitComment(String comment)
public void close()
public boolean awaitClose(long timeout,
TimeUnit unit)
Copyright © 2021 Eclipse Foundation. All rights reserved.