Package io.undertow.server.handlers.sse
Interface ServerSentEventConnection.EventCallback
- Enclosing class:
- ServerSentEventConnection
public static interface ServerSentEventConnection.EventCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done
(ServerSentEventConnection connection, String data, String event, String id) Notification that is called when a message is sucessfully sentvoid
failed
(ServerSentEventConnection connection, String data, String event, String id, IOException e) Notification that is called when a message send fails.
-
Method Details
-
done
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, String data, String event, String id, 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
-