Package com.suse.salt.netapi.event
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
Notify the listener of a new event. Returned data is aEventobject.- Parameters:
event- object representation of the latest stream event
-
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
-