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 Summary
ConstructorDescriptionToFromStringSerde
(ToStringSerializer<T> toStringSerializer, ParseStringDeserializer<T> fromStringDeserializer) Construct an instance with the provided properties. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.kafka.common.serialization.Serde
close
-
Constructor Details
-
ToFromStringSerde
public ToFromStringSerde(ToStringSerializer<T> toStringSerializer, ParseStringDeserializer<T> fromStringDeserializer) Construct an instance with the provided properties.- Parameters:
toStringSerializer
- theToStringSerializer
.fromStringDeserializer
- theParseStringDeserializer
.
-
-
Method Details