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 Object
A list of timed events and the number of dropped events representation.
Since:
0.5
  • Constructor Details

    • TimedEvents

      TimedEvents()
  • Method Details

    • create

      public static <T> SpanData.TimedEvents<T> create(List<SpanData.TimedEvent<T>> events, int droppedEventsCount)
      Returns a new immutable TimedEvents<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 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