Class Serdes


  • public class Serdes
    extends java.lang.Object
    Factory for creating serializers / deserializers.
    • Constructor Detail

      • Serdes

        public Serdes()
    • Method Detail

      • serdeFrom

        public static <T> Serde<T> serdeFrom​(java.lang.Class<T> type)
      • serdeFrom

        public static <T> Serde<T> serdeFrom​(Serializer<T> serializer,
                                             Deserializer<T> deserializer)
        Construct a serde object from separate serializer and deserializer
        Parameters:
        serializer - must not be null.
        deserializer - must not be null.
      • Long

        public static Serde<java.lang.Long> Long()
      • Integer

        public static Serde<java.lang.Integer> Integer()
      • Short

        public static Serde<java.lang.Short> Short()
      • Float

        public static Serde<java.lang.Float> Float()
      • Double

        public static Serde<java.lang.Double> Double()
      • String

        public static Serde<java.lang.String> String()
      • ByteBuffer

        public static Serde<java.nio.ByteBuffer> ByteBuffer()
      • Bytes

        public static Serde<org.apache.kafka.common.utils.Bytes> Bytes()
      • UUID

        public static Serde<java.util.UUID> UUID()
      • ByteArray

        public static Serde<byte[]> ByteArray()