Class IntAnyValueStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.IntAnyValueStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<java.lang.Long>
final class IntAnyValueStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<java.lang.Long>
SeeIntAnyValueMarshaler.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static IntAnyValueStatelessMarshalerINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateIntAnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBinarySerializedSize(java.lang.Long value, MarshalerContext context)Returns the number of bytes marshaling given value will write in proto binary format.voidwriteTo(Serializer output, java.lang.Long value, MarshalerContext context)Marshal given value using the providedSerializer.
-
-
-
Field Detail
-
INSTANCE
static final IntAnyValueStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, java.lang.Long value, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshalerMarshal given value using the providedSerializer.- Specified by:
writeToin interfaceStatelessMarshaler<java.lang.Long>- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(java.lang.Long value, MarshalerContext context)Description copied from interface:StatelessMarshalerReturns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSizein interfaceStatelessMarshaler<java.lang.Long>
-
-