Description
Serializer, Deserializer and Serde interfaces have methods configure() and close(). Pretty often one want to leave these methods empty. For example, a lot of serializers inside org.apache.kafka.common.serialization package have these methods empty:
@Override public void configure(Map<String, ?> configs, boolean isKey) { // nothing to do } @Override public void close() { // nothing to do }
To avoid such boilerplate, we may create new interfaces (like UnconfiguredSerializer), in which we will define these methods empty.
Attachments
Issue Links
- relates to
-
KAFKA-6923 Consolidate ExtendedSerializer/Serializer and ExtendedDeserializer/Deserializer
- Resolved
- links to
(2 mentioned in)