Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A827B9F24 for ; Thu, 29 Mar 2012 07:15:52 +0000 (UTC) Received: (qmail 58694 invoked by uid 500); 29 Mar 2012 07:15:52 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 58639 invoked by uid 500); 29 Mar 2012 07:15:51 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 58615 invoked by uid 99); 29 Mar 2012 07:15:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 07:15:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 07:15:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AA9C634CD33 for ; Thu, 29 Mar 2012 07:15:28 +0000 (UTC) Date: Thu, 29 Mar 2012 07:15:28 +0000 (UTC) From: "Jay Kreps (Created) (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <1372246610.31591.1333005328700.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (KAFKA-322) Remove one-off Send objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Remove one-off Send objects --------------------------- Key: KAFKA-322 URL: https://issues.apache.org/jira/browse/KAFKA-322 Project: Kafka Issue Type: Improvement Components: core Affects Versions: 0.8 Reporter: Jay Kreps Assignee: Jay Kreps Priority: Minor Fix For: 0.8 We seem to be accumulating a bunch of unnecessary classes that implement Send. I am not sure why people are doing this. Example: ProducerResponseSend.scala It is not at all clear why we would add a custom send object for each request/response type. They all do the same thing. The only reason for having the concept of a Send object was to allow two implementations: ByteBufferSend and MessageSetSend, the later let's us abstract over the difference between a normal write and a sendfile() call. I think we can refactory ByteBufferSend to take one or more ByteBuffers instead of just one and delete all of these one-offs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira