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