Class 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 Detail

      • TimedEvents

        TimedEvents()
    • Method Detail

      • create

        public static <T> SpanData.TimedEvents<T> create​(java.util.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 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