Class SerializerWrapper<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.fault.SerializerWrapper<T>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.kafka.common.serialization.Serializer<T>
public class SerializerWrapper<T> extends Object implements org.apache.kafka.common.serialization.Serializer<T>
-
-
Constructor Summary
Constructors Constructor Description SerializerWrapper(String className, boolean handleKeys, SerializationFailureHandler<T> failureHandler)
-
-
-
Constructor Detail
-
SerializerWrapper
public SerializerWrapper(String className, boolean handleKeys, SerializationFailureHandler<T> failureHandler)
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs, boolean isKey)
- Specified by:
configure
in interfaceorg.apache.kafka.common.serialization.Serializer<T>
-
serialize
public byte[] serialize(String topic, T data)
- Specified by:
serialize
in interfaceorg.apache.kafka.common.serialization.Serializer<T>
-
serialize
public byte[] serialize(String topic, org.apache.kafka.common.header.Headers headers, T data)
- Specified by:
serialize
in interfaceorg.apache.kafka.common.serialization.Serializer<T>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.kafka.common.serialization.Serializer<T>
-
-