Package zipkin2.reporter.libthrift
Class InternalScribeCodec
- java.lang.Object
-
- zipkin2.reporter.libthrift.InternalScribeCodec
-
public final class InternalScribeCodec extends Object
-
-
Constructor Summary
Constructors Constructor Description InternalScribeCodec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intmessageSizeInBytes(byte[] category, int spanSizeInBytes)static intmessageSizeInBytes(byte[] category, List<byte[]> encodedSpans)static booleanreadLogResponse(int seqid, org.apache.thrift.protocol.TBinaryProtocol iprot)Returns false if the scribe response was try later.static voidwriteLogRequest(byte[] category, List<byte[]> encodedSpans, int seqid, org.apache.thrift.protocol.TBinaryProtocol oprot)
-
-
-
Method Detail
-
messageSizeInBytes
public static int messageSizeInBytes(byte[] category, int spanSizeInBytes)
-
messageSizeInBytes
public static int messageSizeInBytes(byte[] category, List<byte[]> encodedSpans)
-
writeLogRequest
public static void writeLogRequest(byte[] category, List<byte[]> encodedSpans, int seqid, org.apache.thrift.protocol.TBinaryProtocol oprot) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readLogResponse
public static boolean readLogResponse(int seqid, org.apache.thrift.protocol.TBinaryProtocol iprot) throws org.apache.thrift.TExceptionReturns false if the scribe response was try later.- Throws:
org.apache.thrift.TException
-
-