Class Serdes.WrapperSerde<T>
- java.lang.Object
-
- org.apache.kafka.common.serialization.Serdes.WrapperSerde<T>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Serde<T>
- Direct Known Subclasses:
Serdes.ByteArraySerde
,Serdes.ByteBufferSerde
,Serdes.BytesSerde
,Serdes.DoubleSerde
,Serdes.FloatSerde
,Serdes.IntegerSerde
,Serdes.LongSerde
,Serdes.ShortSerde
,Serdes.StringSerde
,Serdes.UUIDSerde
- Enclosing class:
- Serdes
public static class Serdes.WrapperSerde<T> extends java.lang.Object implements Serde<T>
-
-
Constructor Summary
Constructors Constructor Description WrapperSerde(Serializer<T> serializer, Deserializer<T> deserializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this serde class, which will close the underlying serializer and deserializer.void
configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
Configure this class, which will configure the underlying serializer and deserializer.Deserializer<T>
deserializer()
Serializer<T>
serializer()
-
-
-
Constructor Detail
-
WrapperSerde
public WrapperSerde(Serializer<T> serializer, Deserializer<T> deserializer)
-
-
Method Detail
-
configure
public void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
Description copied from interface:Serde
Configure this class, which will configure the underlying serializer and deserializer.
-
close
public void close()
Description copied from interface:Serde
Close this serde class, which will close the underlying serializer and deserializer. This method has to be idempotent because it might be called multiple times.
-
serializer
public Serializer<T> serializer()
- Specified by:
serializer
in interfaceSerde<T>
-
deserializer
public Deserializer<T> deserializer()
- Specified by:
deserializer
in interfaceSerde<T>
-
-