Package io.undertow.server.handlers.sse
Interface ServerSentEventConnection.EventCallback
-
- Enclosing class:
- ServerSentEventConnection
public static interface ServerSentEventConnection.EventCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddone(ServerSentEventConnection connection, java.lang.String data, java.lang.String event, java.lang.String id)Notification that is called when a message is sucessfully sentvoidfailed(ServerSentEventConnection connection, java.lang.String data, java.lang.String event, java.lang.String id, java.io.IOException e)Notification that is called when a message send fails.
-
-
-
Method Detail
-
done
void done(ServerSentEventConnection connection, java.lang.String data, java.lang.String event, java.lang.String id)
Notification that is called when a message is sucessfully sent- Parameters:
connection- The connectiondata- The message dataevent- The message eventid- The message id
-
failed
void failed(ServerSentEventConnection connection, java.lang.String data, java.lang.String event, java.lang.String id, java.io.IOException e)
Notification that is called when a message send fails.- Parameters:
connection- The connectiondata- The message dataevent- The message eventid- The message ide- The exception
-
-