Package zipkin2.reporter
Interface BytesEncoder<S>
-
- Type Parameters:
S
- type of the object to encode
- All Known Implementing Classes:
SpanBytesEncoder
public interface BytesEncoder<S>
Utility for encoding one or more elements of a type into a byte array.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encode(S input)
Serializes an object into its binary form.Encoding
encoding()
int
sizeInBytes(S input)
-