Class ListSerializer<Inner>
java.lang.Object
org.apache.kafka.common.serialization.ListSerializer<Inner>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Serializer<List<Inner>>
-
Constructor Details
-
ListSerializer
public ListSerializer() -
ListSerializer
-
-
Method Details
-
getInnerSerializer
-
configure
Description copied from interface:Serializer
Configure this class.- Specified by:
configure
in interfaceSerializer<Inner>
- Parameters:
configs
- configs in key/value pairsisKey
- whether is for key or value
-
serialize
Description copied from interface:Serializer
Convertdata
into a byte array.- Specified by:
serialize
in interfaceSerializer<Inner>
- Parameters:
topic
- topic associated with datadata
- typed data- Returns:
- serialized bytes
-
close
public void close()Description copied from interface:Serializer
Close this serializer.This method must be idempotent as it may be called multiple times.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSerializer<Inner>
-