Package com.suse.salt.netapi.event
Interface EventListener
-
public interface EventListenerDefines a client notification interface for events stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voideventStreamClosed(int code, String phrase)Notify the listener that the backing event stream was closed.voidnotify(Event event)Notify the listener of a new event.
-
-
-
Method Detail
-
notify
void notify(Event event)
Notify the listener of a new event. Returned data is aEventobject.- Parameters:
event- object representation of the latest stream event
-
eventStreamClosed
void eventStreamClosed(int code, String phrase)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
-
-