public class BinaryAnnotation extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Endpoint |
host
The host that recorded tag, which allows you to differentiate between
multiple tags with the same key.
|
String |
key |
AnnotationType |
type |
byte[] |
value |
| Modifier and Type | Method and Description |
|---|---|
static BinaryAnnotation |
address(String key,
Endpoint endpoint)
Special-cased form supporting
Constants.CLIENT_ADDR and Constants.SERVER_ADDR. |
static BinaryAnnotation |
create(String key,
byte[] value,
AnnotationType type,
Endpoint endpoint) |
static BinaryAnnotation |
create(String key,
String value,
Endpoint endpoint)
String values are the only queryable type of binary annotation.
|
boolean |
equals(Object o) |
String |
getKey() |
byte[] |
getValue() |
int |
hashCode() |
public final String key
public final byte[] value
public final AnnotationType type
AnnotationTypepublic final Endpoint host
public static BinaryAnnotation address(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(String key, String value, @Nullable Endpoint endpoint)
public static BinaryAnnotation create(String key, byte[] value, AnnotationType type, @Nullable Endpoint endpoint)
public String getKey()
public byte[] getValue()
Copyright © 2016. All rights reserved.