public enum BytesMessageEncoder extends Enum<BytesMessageEncoder>
| Enum Constant and Description |
|---|
JSON |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
encode(List<byte[]> encodedSpans)
Combines a list of encoded spans into an encoded list.
|
static BytesMessageEncoder |
forEncoding(zipkin2.codec.Encoding encoding) |
static BytesMessageEncoder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BytesMessageEncoder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BytesMessageEncoder JSON
public static BytesMessageEncoder[] values()
for (BytesMessageEncoder c : BytesMessageEncoder.values()) System.out.println(c);
public static BytesMessageEncoder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract byte[] encode(List<byte[]> encodedSpans)
The primary use of this is batch reporting spans. For example, spans are encoded one-by-one into a queue. This queue is drained up to a byte
threshold. Then, the list is encoded with this function and reported out-of-process.
public static BytesMessageEncoder forEncoding(zipkin2.codec.Encoding encoding)
Copyright © 2016–2017 OpenZipkin. All rights reserved.