Class SpanData.TimedEvent<T>

java.lang.Object
io.opencensus.trace.export.SpanData.TimedEvent<T>
Type Parameters:
T - the type of value that is timed.
Direct Known Subclasses:
AutoValue_SpanData_TimedEvent
Enclosing class:
SpanData

@Immutable public abstract static class SpanData.TimedEvent<T> extends Object
A timed event representation.
Since:
0.5
  • Constructor Details

    • TimedEvent

      TimedEvent()
  • Method Details

    • create

      public static <T> SpanData.TimedEvent<T> create(Timestamp timestamp, T event)
      Returns a new immutable TimedEvent<T>.
      Type Parameters:
      T - the type of value that is timed.
      Parameters:
      timestamp - the Timestamp of this event.
      event - the event.
      Returns:
      a new immutable TimedEvent<T>
      Since:
      0.5
    • getTimestamp

      public abstract Timestamp getTimestamp()
      Returns the Timestamp of this event.
      Returns:
      the Timestamp of this event.
      Since:
      0.5
    • getEvent

      public abstract T getEvent()
      Returns the event.
      Returns:
      the event.
      Since:
      0.5