java.io.Serializable@Generated("thrift")
public class BinaryAnnotation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
Endpoint |
host |
The host that recorded tag, which allows you to differentiate between
multiple tags with the same key.
|
java.lang.String |
key |
|
AnnotationType |
type |
|
byte[] |
value |
| Modifier and Type | Method | Description |
|---|---|---|
static BinaryAnnotation |
address(java.lang.String key,
Endpoint endpoint) |
Special-cased form supporting
Constants.CLIENT_ADDR and Constants.SERVER_ADDR. |
static BinaryAnnotation |
create(java.lang.String key,
byte[] value,
AnnotationType type,
Endpoint endpoint) |
|
static BinaryAnnotation |
create(java.lang.String key,
java.lang.String value,
Endpoint endpoint) |
String values are the only queryable type of binary annotation.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getKey() |
|
byte[] |
getValue() |
|
int |
hashCode() |
public final java.lang.String key
public final byte[] value
public final AnnotationType type
AnnotationTypepublic final Endpoint host
public static BinaryAnnotation address(java.lang.String key, Endpoint endpoint)
Constants.CLIENT_ADDR and Constants.SERVER_ADDR.key - Constants.CLIENT_ADDR or Constants.SERVER_ADDRendpoint - associated endpoint.public static BinaryAnnotation create(java.lang.String key, java.lang.String value, @Nullable Endpoint endpoint)
public static BinaryAnnotation create(java.lang.String key, byte[] value, AnnotationType type, @Nullable Endpoint endpoint)
public java.lang.String getKey()
public byte[] getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 OpenZipkin. All rights reserved.