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