Class StructuredLogJsonKafkaSerializer<L>
- java.lang.Object
-
- com.linecorp.armeria.server.logging.structured.kafka.StructuredLogJsonKafkaSerializer<L>
-
- Type Parameters:
L- the type of structured log which is being serialized
- All Implemented Interfaces:
Closeable,AutoCloseable,Serializer<L>
@Deprecated public class StructuredLogJsonKafkaSerializer<L> extends Object implements Serializer<L>
Deprecated.A KafkaSerializerwhich serializes anything which are serializable in JSON format.
-
-
Constructor Summary
Constructors Constructor Description StructuredLogJsonKafkaSerializer(ObjectMapper objectMapper)Deprecated.ConstructsStructuredLogJsonKafkaSerializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidconfigure(Map<String,?> map, boolean b)Deprecated.byte[]serialize(String topic, L value)Deprecated.
-
-
-
Constructor Detail
-
StructuredLogJsonKafkaSerializer
public StructuredLogJsonKafkaSerializer(ObjectMapper objectMapper)
Deprecated.ConstructsStructuredLogJsonKafkaSerializer.- Parameters:
objectMapper- an instance ofObjectMapperwhich is used to serializer structured logs
-
-
Method Detail
-
configure
public void configure(Map<String,?> map, boolean b)
Deprecated.- Specified by:
configurein interfaceSerializer<L>
-
serialize
@Nullable public byte[] serialize(String topic, L value)
Deprecated.- Specified by:
serializein interfaceSerializer<L>
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSerializer<L>
-
-