Package io.opencensus.trace.export
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
A timed event representation.
- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SpanData.TimedEvent
<T> Returns a new immutableTimedEvent<T>
.abstract T
getEvent()
Returns the event.abstract Timestamp
Returns theTimestamp
of this event.
-
Constructor Details
-
TimedEvent
TimedEvent()
-
-
Method Details
-
create
Returns a new immutableTimedEvent<T>
.- Type Parameters:
T
- the type of value that is timed.- Parameters:
timestamp
- theTimestamp
of this event.event
- the event.- Returns:
- a new immutable
TimedEvent<T>
- Since:
- 0.5
-
getTimestamp
Returns theTimestamp
of this event.- Returns:
- the
Timestamp
of this event. - Since:
- 0.5
-
getEvent
Returns the event.- Returns:
- the event.
- Since:
- 0.5
-