Interface EventListener
public interface EventListener
Defines a client notification interface for events stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoideventStreamClosed(int code, String phrase) Notify the listener that the backing event stream was closed.voidNotify the listener of a new event.
-
Method Details
-
notify
-
eventStreamClosed
Notify the listener that the backing event stream was closed. Listener may need to recreate the event stream or take other actions.- Parameters:
code- an integer code to represent the reason for closingphrase- a String representation of code
-