Package zipkin2.codec

Interface BytesEncoder<T>

Type Parameters:
T - type of the object to encode
All Known Implementing Classes:
DependencyLinkBytesEncoder, SpanBytesEncoder

public interface BytesEncoder<T>
Utility for encoding one or more elements of a type into a byte array.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    encode(T input)
    Serializes an object into its binary form.
    byte[]
    encodeList(List<T> input)
    Serializes a list of objects into their binary form.
     
    int
    sizeInBytes(T input)
     
  • Method Details

    • encoding

      Encoding encoding()
    • sizeInBytes

      int sizeInBytes(T input)
    • encode

      byte[] encode(T input)
      Serializes an object into its binary form.
    • encodeList

      byte[] encodeList(List<T> input)
      Serializes a list of objects into their binary form.