kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias J. Sax (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-6161) Introduce new serdes interfaces with empty configure() and close()
Date Sat, 04 Nov 2017 10:28:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias J. Sax updated KAFKA-6161:
-----------------------------------
    Component/s: streams

> Introduce new serdes interfaces with empty configure() and close()
> ------------------------------------------------------------------
>
>                 Key: KAFKA-6161
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6161
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients, streams
>            Reporter: Evgeny Veretennikov
>            Assignee: Evgeny Veretennikov
>            Priority: Normal
>
> {{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:
> {code}
> @Override
> public void configure(Map<String, ?> configs, boolean isKey) {
>     // nothing to do
> }
> @Override
> public void close() {
>     // nothing to do
> }
> {code}
> To avoid such boilerplate, we may create new interfaces (like {{UnconfiguredSerializer}}),
in which we will define these methods empty.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message