Class ArrayAnyValueStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.ArrayAnyValueStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<java.util.List<Value<?>>>
final class ArrayAnyValueStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<java.util.List<Value<?>>>
A Marshaler of key value pairs. SeeArrayAnyValueMarshaler
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static ArrayAnyValueStatelessMarshaler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ArrayAnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBinarySerializedSize(java.util.List<Value<?>> value, MarshalerContext context)
Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo(Serializer output, java.util.List<Value<?>> value, MarshalerContext context)
Marshal given value using the providedSerializer
.
-
-
-
Field Detail
-
INSTANCE
static final ArrayAnyValueStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, java.util.List<Value<?>> value, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<java.util.List<Value<?>>>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(java.util.List<Value<?>> value, MarshalerContext context)
Description copied from interface:StatelessMarshaler
Returns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler<java.util.List<Value<?>>>
-
-