public class EventStreamData extends DataClass
Experimental Features
for more information.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.Date
s, 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.
EventStreamEvent
,
Experimental Features
factoryCreated, factoryProperties
Constructor and Description |
---|
EventStreamData() |
EventStreamData(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEndTime()
A string representation of the
DateTime when capturing for the stream was completed . |
EventStreamEvent[] |
getEvents()
An array of the captured
event records retained by the stream. |
java.lang.Integer |
getNEvents()
The total number of events captured by the stream since capturing
started . |
static EventStreamData |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getStartTime()
A string representation of the
DateTime when capturing for the stream started . |
applyFactoryProperties, 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
public EventStreamData()
public EventStreamData(com.google.gwt.core.client.JavaScriptObject jsObj)
public static EventStreamData getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public java.lang.String getEndTime()
DateTime
when capturing for the stream was completed
.getStartTime()
public EventStreamEvent[] getEvents()
event records
retained by the stream.
Only the last EventStream.maxSize
event records will be
present, though more events may have been captured since capturing started
. Note that EventStreamData
reported via an error callback will only contain events that have
occurred after the last callback, for efficiency.
getNEvents()
public java.lang.Integer getNEvents()
started
. This value may exceed the length of the reported events
, which only contains the most recent events.public java.lang.String getStartTime()
DateTime
when capturing for the stream started
.getEndTime()