public final class Annotation extends Object implements Comparable<Annotation>
"sr".| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.Builder |
| Modifier and Type | Field and Description |
|---|---|
Endpoint |
endpoint
The host that recorded
value, primarily for query by service name. |
long |
timestamp
Microseconds from epoch.
|
String |
value
Usually a short tag indicating an event, like
"sr". |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Annotation that)
|
static Annotation |
create(long timestamp,
String value,
Endpoint endpoint) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public final long timestamp
gettimeofday or syncing System.nanoTime() against a tick
of System.currentTimeMillis().public final String value
"sr". or "finagle.retry"public static Annotation create(long timestamp, String value, @Nullable Endpoint endpoint)
public int compareTo(Annotation that)
compareTo in interface Comparable<Annotation>Copyright © 2015–2016 OpenZipkin. All rights reserved.