Class AttributeArrayAnyValueStatelessMarshaler<T>
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.AttributeArrayAnyValueStatelessMarshaler<T>
-
- All Implemented Interfaces:
StatelessMarshaler2<AttributeType,java.util.List<T>>
final class AttributeArrayAnyValueStatelessMarshaler<T> extends java.lang.Object implements StatelessMarshaler2<AttributeType,java.util.List<T>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static AttributeArrayAnyValueStatelessMarshaler<java.lang.Object>
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
AttributeArrayAnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBinarySerializedSize(AttributeType type, java.util.List<T> list, MarshalerContext context)
Returns the number of bytes this Marshaler will write.void
writeTo(Serializer output, AttributeType type, java.util.List<T> list, MarshalerContext context)
Marshal given key and value using the providedSerializer
.
-
-
-
Field Detail
-
INSTANCE
static final AttributeArrayAnyValueStatelessMarshaler<java.lang.Object> INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, AttributeType type, java.util.List<T> list, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler2
Marshal given key and value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler2<AttributeType,java.util.List<T>>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(AttributeType type, java.util.List<T> list, MarshalerContext context)
Description copied from interface:StatelessMarshaler2
Returns the number of bytes this Marshaler will write.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler2<AttributeType,java.util.List<T>>
-
-