T
- Type to be serialized from and deserialized into.
A class that implements this interface is expected to have a constructor with no parameter.java.lang.AutoCloseable
, java.io.Closeable
Serdes.ByteArraySerde
, Serdes.ByteBufferSerde
, Serdes.BytesSerde
, Serdes.DoubleSerde
, Serdes.FloatSerde
, Serdes.IntegerSerde
, Serdes.LongSerde
, Serdes.ShortSerde
, Serdes.StringSerde
, Serdes.WrapperSerde
, WindowedSerdes.SessionWindowedSerde
, WindowedSerdes.TimeWindowedSerde
public interface Serde<T>
extends java.io.Closeable
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() |
void configure(java.util.Map<java.lang.String,?> configs, boolean isKey)
configs
- configs in key/value pairsisKey
- whether is for key or valuevoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Serializer<T> serializer()
Deserializer<T> deserializer()