Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CDEA200B70 for ; Sat, 27 Aug 2016 13:57:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B535160AB2; Sat, 27 Aug 2016 11:57:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6F2BC160AA6 for ; Sat, 27 Aug 2016 13:57:24 +0200 (CEST) Received: (qmail 35608 invoked by uid 500); 27 Aug 2016 11:57:23 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 35595 invoked by uid 99); 27 Aug 2016 11:57:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2016 11:57:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 42E361A0087 for ; Sat, 27 Aug 2016 11:57:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XogTdP3v5alW for ; Sat, 27 Aug 2016 11:57:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id CB2445F30A for ; Sat, 27 Aug 2016 11:57:21 +0000 (UTC) Received: (qmail 34842 invoked by uid 99); 27 Aug 2016 11:57:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2016 11:57:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CA8502C0031 for ; Sat, 27 Aug 2016 11:57:20 +0000 (UTC) Date: Sat, 27 Aug 2016 11:57:20 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BEAM-569) JMS IO should set maxNumRecords to Long.MAX_VALUE by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 27 Aug 2016 11:57:25 -0000 [ https://issues.apache.org/jira/browse/BEAM-569?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated BEAM-569: -------------------------------------- Fix Version/s: 0.3.0-incubating > JMS IO should set maxNumRecords to Long.MAX_VALUE by default > ------------------------------------------------------------ > > Key: BEAM-569 > URL: https://issues.apache.org/jira/browse/BEAM-569 > Project: Beam > Issue Type: Improvement > Components: sdk-java-extensions > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 0.3.0-incubating > > > Right now, the JMS IO source doesn't wait for new message on the JMS dest= ination (it uses {{receiveNoWait()}} method on the consumer). > I think, it's worth to give the possibility for the user to define the be= havior. > I propose to introduce {{withTimeout()}} configuration on JMS IO: > - if the user defines {{-1}}, it means infinite timeout, so the reader wi= ll use {{consumer.receive()}} and the source will wait for new messages on = the destination > - if the user defines {{0}}, it means the current behavior (and default):= the reader will use {{consumer.receiveNoWait()}}. > - if the user defines any positive value, it's actually the timeout to wa= it for new messages: the reader will use {{consumer.receive(timeout)}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)