Class SpanData.TimedEvents<T>
java.lang.Object
io.opencensus.trace.export.SpanData.TimedEvents<T>
- Type Parameters:
T- the type of value that is timed.
- Direct Known Subclasses:
AutoValue_SpanData_TimedEvents
- Enclosing class:
SpanData
A list of timed events and the number of dropped events representation.
- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SpanData.TimedEvents<T> create(List<SpanData.TimedEvent<T>> events, int droppedEventsCount) Returns a new immutableTimedEvents<T>.abstract intReturns the number of dropped events.abstract List<SpanData.TimedEvent<T>> Returns the list of events.
-
Constructor Details
-
TimedEvents
TimedEvents()
-
-
Method Details
-
create
public static <T> SpanData.TimedEvents<T> create(List<SpanData.TimedEvent<T>> events, int droppedEventsCount) Returns a new immutableTimedEvents<T>.- Type Parameters:
T- the type of value that is timed.- Parameters:
events- the list of events.droppedEventsCount- the number of dropped events.- Returns:
- a new immutable
TimedEvents<T> - Since:
- 0.5
-
getEvents
Returns the list of events.- Returns:
- the list of events.
- Since:
- 0.5
-
getDroppedEventsCount
public abstract int getDroppedEventsCount()Returns the number of dropped events.- Returns:
- the number of dropped events.
- Since:
- 0.5
-