Package io.opencensus.trace.export
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
@Immutable public abstract static class SpanData.TimedEvents<T> extends java.lang.Object
A list of timed events and the number of dropped events representation.- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description TimedEvents()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> SpanData.TimedEvents<T>
create(java.util.List<SpanData.TimedEvent<T>> events, int droppedEventsCount)
Returns a new immutableTimedEvents<T>
.abstract int
getDroppedEventsCount()
Returns the number of dropped events.abstract java.util.List<SpanData.TimedEvent<T>>
getEvents()
Returns the list of events.
-
-
-
Method Detail
-
create
public static <T> SpanData.TimedEvents<T> create(java.util.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
public abstract java.util.List<SpanData.TimedEvent<T>> 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
-
-