Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E35CA18863 for ; Fri, 2 Oct 2015 14:52:28 +0000 (UTC) Received: (qmail 26216 invoked by uid 500); 2 Oct 2015 14:52:28 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 26130 invoked by uid 500); 2 Oct 2015 14:52:28 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 26113 invoked by uid 99); 2 Oct 2015 14:52:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2015 14:52:28 +0000 Date: Fri, 2 Oct 2015 14:52:28 +0000 (UTC) From: "Randall Hauch (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-2600) Make KStream interfaces compatible with Java 8 java.util.function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941220#comment-14941220 ] Randall Hauch commented on KAFKA-2600: -------------------------------------- My original suggestion was to make these changes so we can eventually _evolve_ from KStream's custom functional interfaces to Java8 standard functional interfaces. These changes would make it possible for our functional interfaces to extend Java 8's and remain binary compatible, but changing `KStream` methods to *use* the Java 8 functional interfaces is not binary compatible. Overloading is also not an option, since that wreaks havoc with lambdas and makes it ambiguous as to which method is being used. Thus, the goal of these changes is to simply align names and concepts with those in the Java 8 API for ease of learning and use. The attached PR still does this. > Make KStream interfaces compatible with Java 8 java.util.function > ----------------------------------------------------------------- > > Key: KAFKA-2600 > URL: https://issues.apache.org/jira/browse/KAFKA-2600 > Project: Kafka > Issue Type: Sub-task > Reporter: Guozhang Wang > Assignee: Randall Hauch > Fix For: 0.9.0.0 > > > As suggested by [~rhauch], if we make the interface method names as the same to java.util.function.[Functions]: > https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html > Our goal is to simply align names and concepts with those in the Java 8 API for ease of learning and use. -- This message was sent by Atlassian JIRA (v6.3.4#6332)