Class ToFromStringSerde<T>

java.lang.Object
org.springframework.kafka.support.serializer.ToFromStringSerde<T>
Type Parameters:
T - the type.
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.serialization.Serde<T>

public class ToFromStringSerde<T> extends Object implements org.apache.kafka.common.serialization.Serde<T>
A Serde that delegates to a ToStringSerializer and ParseStringDeserializer.
Since:
2.5
Author:
Gary Russell
  • Constructor Details

  • Method Details

    • configure

      public void configure(Map<String,?> configs, boolean isKey)
      Specified by:
      configure in interface org.apache.kafka.common.serialization.Serde<T>
    • serializer

      public org.apache.kafka.common.serialization.Serializer<T> serializer()
      Specified by:
      serializer in interface org.apache.kafka.common.serialization.Serde<T>
    • deserializer

      public org.apache.kafka.common.serialization.Deserializer<T> deserializer()
      Specified by:
      deserializer in interface org.apache.kafka.common.serialization.Serde<T>