Package com.suse.salt.netapi.event
Interface EventListener
-
public interface EventListener
Defines a client notification interface for events stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
eventStreamClosed(int code, String phrase)
Notify the listener that the backing event stream was closed.void
notify(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 aEvent
object.- 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
-
-