StreamingEventBundle¶
-
public class
StreamingEventBundle
¶ This class represents a container of all the informations of the events triggered by the Streaming Library.
Constructors¶
StreamingEventBundle¶
-
public
StreamingEventBundle
(StreamingEventType eventType, StreamingEvent event, String info, Object data)¶ This object contains all the informations of any event triggered by the Streaming Library.
Parameters: - eventType – the type of this event
- event – the event
- info – a textual information describing this event
- data – a generic object containing event-specific informations (the object type depends on the type of the event). In particular:
- events of type
StreamingEventType.STREAM_EVENT
contain theIStream
object that triggered this event
Methods¶
getData¶
-
public Object
getData
()¶ Get a generic object containing event-specific informations (the object type depends on the type of the event). Note that events of type
StreamingEventType.STREAM_EVENT
contain theIStream
object that triggered this eventReturns: a generic object containing event-specific informations
getEvent¶
-
public StreamingEvent
getEvent
()¶ Get the triggered event
Returns: the event triggered by the library
getEventType¶
-
public StreamingEventType
getEventType
()¶ Get the event type
Returns: the event type