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.Object
A 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 T
getEvent()
Returns the event.abstract Timestamp
getTimestamp()
Returns theTimestamp
of 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
- theTimestamp
of this event.event
- the event.- Returns:
- a new immutable
TimedEvent<T>
- Since:
- 0.5
-
getTimestamp
public abstract Timestamp getTimestamp()
Returns theTimestamp
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
-
-