Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76CFD10A09 for ; Sun, 9 Nov 2014 15:22:56 +0000 (UTC) Received: (qmail 10468 invoked by uid 500); 9 Nov 2014 15:22:56 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 10337 invoked by uid 500); 9 Nov 2014 15:22:56 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 10321 invoked by uid 99); 9 Nov 2014 15:22:56 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2014 15:22:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F27E78BE06F; Sun, 9 Nov 2014 15:22:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Sun, 09 Nov 2014 15:22:57 -0000 Message-Id: <441f3d9daa594eb7a14123ada0218a87@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/3] camel git commit: CAMEL-7999: Added default values CAMEL-7999: Added default values Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6bbb9bc7 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6bbb9bc7 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6bbb9bc7 Branch: refs/heads/master Commit: 6bbb9bc787017f5862f32d44adf442d26aa2bc31 Parents: 7e0d92c Author: Claus Ibsen Authored: Sun Nov 9 16:21:41 2014 +0100 Committer: Claus Ibsen Committed: Sun Nov 9 16:21:41 2014 +0100 ---------------------------------------------------------------------- .../component/yammer/YammerConfiguration.java | 25 +++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/6bbb9bc7/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/YammerConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/YammerConfiguration.java b/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/YammerConfiguration.java index 18019ca..f2b813e 100644 --- a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/YammerConfiguration.java +++ b/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/YammerConfiguration.java @@ -28,32 +28,24 @@ public class YammerConfiguration { private String consumerSecret; @UriParam private String accessToken; - - private String function; - @UriParam private boolean useJson; - - @UriParam - private long delay = 3000 + 2000; // 3 sec per poll is enforced by yammer; add 2 sec for safety - - @UriParam + @UriParam(defaultValue = "5000") + private long delay = 3000 + 2000; // 3 sec per poll is enforced by yammer; add 2 sec for safety + @UriParam(defaultValue = "-1") private int limit = -1; // default is unlimited - - @UriParam + @UriParam(defaultValue = "-1") private int olderThan = -1; - - @UriParam + @UriParam(defaultValue = "-1") private int newerThan = -1; - @UriParam private String threaded; - @UriParam private String userId; - + + private String function; private ApiRequestor requestor; - + public String getConsumerKey() { return consumerKey; } @@ -94,7 +86,6 @@ public class YammerConfiguration { this.function = function; } - public boolean isUseJson() { return useJson; }