public interface EventSource
EventSource.Emitteris the active half of the connection and allows to operate on the connection.
EventSourceallows applications to be notified of events happening on the connection; two events are being notified: the opening of the event source connection, where method
onOpen(Emitter)is invoked, and the closing of the event source connection, where method
- See Also:
Nested Class Summary
Nested Classes Modifier and Type Interface Description
EventSource.Emitteris the active half of an event source connection, and allows applications to operate on the connection by sending events, data or comments, or by closing the connection.
void onOpen(EventSource.Emitter emitter) throws java.io.IOException
Callback method invoked when an event source connection is opened.
EventSource.Emitterinstance that allows to operate on the connection
java.io.IOException- if the implementation of the method throws such exception
Callback method invoked when an event source connection is closed.