Package com.smartgwt.client.tools.stream
Class EventStreamData
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.tools.stream.EventStreamData
- All Implemented Interfaces:
- HasHandlers
Note: this is currently an experimental feature and not
 covered by normal support guarantees. See 
A JavaScript object representing the state of a live
Experimental Features for more information.A JavaScript object representing the state of a live
EventStream instance,
 including all captured events retained by the stream.  When EventStream.end() is called to complete capturing, a EventStreamData object is returned.  Note that
 EventStreamData is essentially JSON, except that dates remain JavaScript com.smartgwt.client.util.Dates, rather than being converted to string format.  This ensures that if you serialize the data and then deserialize it, dates round trip properly and time zone information is not lost.
- See Also:
- 
Field SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionA string representation of theDateTimewhen capturing for the stream wascompleted.An array of the capturedevent recordsretained by the stream.The total number of events captured by the stream since capturingstarted.static EventStreamDatagetOrCreateRef(JavaScriptObject jsObj) A string representation of theDateTimewhen capturing for the streamstarted.Methods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
- 
Constructor Details- 
EventStreamDatapublic EventStreamData()
- 
EventStreamData
 
- 
- 
Method Details- 
getOrCreateRef
- 
getEndTimeA string representation of theDateTimewhen capturing for the stream wascompleted.- Returns:
- Current endTime value. Default value is null
- See Also:
 
- 
getEventsAn array of the capturedevent recordsretained by the stream. Only the lastEventStream.maxSizeevent records will be present, though more events may have been captured since capturingstarted.Note that EventStreamDatareported via an error callback will only contain events that have occurred after the last callback, for efficiency.- Returns:
- Current events value. Default value is null
- See Also:
 
- 
getNEventsThe total number of events captured by the stream since capturingstarted. This value may exceed the length of the reportedevents, which only contains the most recent events.- Returns:
- Current nEvents value. Default value is null
 
- 
getStartTimeA string representation of theDateTimewhen capturing for the streamstarted.- Returns:
- Current startTime value. Default value is null
- See Also:
 
 
-