T
- the type of value that is timed.@Immutable public abstract static class SpanData.TimedEvent<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> SpanData.TimedEvent<T> |
create(Timestamp timestamp,
T event)
Returns a new immutable
TimedEvent<T> . |
abstract T |
getEvent()
Returns the event.
|
abstract Timestamp |
getTimestamp()
Returns the
Timestamp of this event. |
public static <T> SpanData.TimedEvent<T> create(Timestamp timestamp, T event)
TimedEvent<T>
.T
- the type of value that is timed.timestamp
- the Timestamp
of this event.event
- the event.TimedEvent<T>
public abstract Timestamp getTimestamp()
Timestamp
of this event.Timestamp
of this event.public abstract T getEvent()