Package zipkin2.codec
Enum Encoding
- All Implemented Interfaces:
Serializable
,Comparable<Encoding>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
listSizeInBytes
(int encodedSizeInBytes) LikelistSizeInBytes(List)
, except for a single element.abstract int
listSizeInBytes
(List<byte[]> values) static Encoding
Returns the enum constant of this type with the specified name.static Encoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JSON
-
THRIFT
Deprecated.this format is deprecated in favor of json or proto3The first format of Zipkin was TBinaryProtocol, big-endian thrift. It is no longer used, but defined here to allow collectors to support reading old data.The message's binary data includes a list header followed by N spans serialized in TBinaryProtocol
-
PROTO3
Repeated (type 2) fields are length-prefixed. A list is a concatenation of fields with no additional overhead.See https://developers.google.com/protocol-buffers/docs/encoding#optional
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
listSizeInBytes
public abstract int listSizeInBytes(int encodedSizeInBytes) LikelistSizeInBytes(List)
, except for a single element. -
listSizeInBytes
-