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:

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 the IStream object that triggered this event

Returns: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

getInfo

public String getInfo()

Get a textual description of this event

Returns:a textual description of this event