public class Serdes extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Serdes.ByteArraySerde |
static class |
Serdes.ByteBufferSerde |
static class |
Serdes.BytesSerde |
static class |
Serdes.DoubleSerde |
static class |
Serdes.IntegerSerde |
static class |
Serdes.LongSerde |
static class |
Serdes.StringSerde |
Constructor and Description |
---|
Serdes() |
Modifier and Type | Method and Description |
---|---|
static Serde<byte[]> |
ByteArray() |
static Serde<ByteBuffer> |
ByteBuffer() |
static Serde<org.apache.kafka.common.utils.Bytes> |
Bytes() |
static Serde<Double> |
Double() |
static Serde<Integer> |
Integer() |
static Serde<Long> |
Long() |
static <T> Serde<T> |
serdeFrom(Class<T> type) |
static <T> Serde<T> |
serdeFrom(Serializer<T> serializer,
Deserializer<T> deserializer)
Construct a serde object from separate serializer and deserializer
|
static Serde<String> |
String() |
public static <T> Serde<T> serdeFrom(Serializer<T> serializer, Deserializer<T> deserializer)
serializer
- must not be null.deserializer
- must not be null.public static Serde<ByteBuffer> ByteBuffer()
public static Serde<org.apache.kafka.common.utils.Bytes> Bytes()
public static Serde<byte[]> ByteArray()