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
@Immutable public abstract static class SpanData.TimedEvent<T> extends java.lang.ObjectA timed event representation.- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description TimedEvent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> SpanData.TimedEvent<T>create(Timestamp timestamp, T event)Returns a new immutableTimedEvent<T>.abstract TgetEvent()Returns the event.abstract TimestampgetTimestamp()Returns theTimestampof this event.
-
-
-
Method Detail
-
create
public static <T> SpanData.TimedEvent<T> create(Timestamp timestamp, T event)
Returns a new immutableTimedEvent<T>.- Type Parameters:
T- the type of value that is timed.- Parameters:
timestamp- theTimestampof this event.event- the event.- Returns:
- a new immutable
TimedEvent<T> - Since:
- 0.5
-
getTimestamp
public abstract Timestamp getTimestamp()
Returns theTimestampof this event.- Returns:
- the
Timestampof this event. - Since:
- 0.5
-
getEvent
public abstract T getEvent()
Returns the event.- Returns:
- the event.
- Since:
- 0.5
-
-