Class AnyValueStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.AnyValueStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<Value<?>>
public final class AnyValueStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<Value<?>>
A Marshaler of key value pairs. SeeAnyValueMarshaler.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description static AnyValueStatelessMarshalerINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateAnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBinarySerializedSize(Value<?> value, MarshalerContext context)Returns the number of bytes marshaling given value will write in proto binary format.voidwriteTo(Serializer output, Value<?> value, MarshalerContext context)Marshal given value using the providedSerializer.
-
-
-
Field Detail
-
INSTANCE
public static final AnyValueStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, Value<?> value, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshalerMarshal given value using the providedSerializer.- Specified by:
writeToin interfaceStatelessMarshaler<Value<?>>- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(Value<?> 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<Value<?>>
-
-