You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/04/27 09:37:05 UTC

camel git commit: CAMEL-11208: Use 30s as default poll for twitter consumer so they are a bit faster. Rate limit problems is around 15-20s so use 30s should be safe.

Repository: camel
Updated Branches:
  refs/heads/master 11fcf39d7 -> 7c9a7bd98


CAMEL-11208: Use 30s as default poll for twitter consumer so they are a bit faster. Rate limit problems is around 15-20s so use 30s should be safe.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7c9a7bd9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7c9a7bd9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7c9a7bd9

Branch: refs/heads/master
Commit: 7c9a7bd98764c4a39120c0ba8dc51b0ae3edd2cf
Parents: 11fcf39
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Apr 27 11:36:57 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Apr 27 11:36:57 2017 +0200

----------------------------------------------------------------------
 components/camel-twitter/src/main/docs/twitter-component.adoc      | 2 +-
 .../camel/component/twitter/consumer/TwitterConsumerPolling.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7c9a7bd9/components/camel-twitter/src/main/docs/twitter-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/docs/twitter-component.adoc b/components/camel-twitter/src/main/docs/twitter-component.adoc
index e05ab1c..d50462b 100644
--- a/components/camel-twitter/src/main/docs/twitter-component.adoc
+++ b/components/camel-twitter/src/main/docs/twitter-component.adoc
@@ -173,7 +173,7 @@ with the following path and query parameters:
 | **backoffErrorThreshold** (scheduler) | The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in. |  | int
 | **backoffIdleThreshold** (scheduler) | The number of subsequent idle polls that should happen before the backoffMultipler should kick-in. |  | int
 | **backoffMultiplier** (scheduler) | To let the scheduled polling consumer backoff if there has been a number of subsequent idles/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and/or backoffErrorThreshold must also be configured. |  | int
-| **delay** (scheduler) | Milliseconds before the next poll. | 60000 | long
+| **delay** (scheduler) | Milliseconds before the next poll. | 30000 | long
 | **greedy** (scheduler) | If greedy is enabled then the ScheduledPollConsumer will run immediately again if the previous run polled 1 or more messages. | false | boolean
 | **initialDelay** (scheduler) | Milliseconds before the first poll starts. You can also specify time values using units such as 60s (60 seconds) 5m30s (5 minutes and 30 seconds) and 1h (1 hour). | 1000 | long
 | **runLoggingLevel** (scheduler) | The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that. | TRACE | LoggingLevel

http://git-wip-us.apache.org/repos/asf/camel/blob/7c9a7bd9/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/consumer/TwitterConsumerPolling.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/consumer/TwitterConsumerPolling.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/consumer/TwitterConsumerPolling.java
index 364e55a..040e70c 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/consumer/TwitterConsumerPolling.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/consumer/TwitterConsumerPolling.java
@@ -29,7 +29,7 @@ import org.apache.camel.impl.ScheduledPollConsumer;
  */
 public class TwitterConsumerPolling extends ScheduledPollConsumer {
 
-    public static final long DEFAULT_CONSUMER_DELAY = 60 * 1000L;
+    public static final long DEFAULT_CONSUMER_DELAY = 30 * 1000L;
     private final TwitterConsumer twitter4jConsumer;
 
     public TwitterConsumerPolling(TwitterEndpointPolling endpoint, Processor processor, TwitterConsumer twitter4jConsumer) {