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