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 2016/09/12 13:13:12 UTC
[4/4] camel git commit: The delay are now in millis so fix the example
The delay are now in millis so fix the example
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f4196773
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f4196773
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f4196773
Branch: refs/heads/camel-2.17.x
Commit: f4196773001760646d8953319862080832612e69
Parents: ec68779
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Sep 12 15:10:43 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Sep 12 15:12:59 2016 +0200
----------------------------------------------------------------------
.../camel/example/websocket/CamelTwitterWebSocketMain.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/f4196773/examples/camel-example-twitter-websocket/src/main/java/org/apache/camel/example/websocket/CamelTwitterWebSocketMain.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-twitter-websocket/src/main/java/org/apache/camel/example/websocket/CamelTwitterWebSocketMain.java b/examples/camel-example-twitter-websocket/src/main/java/org/apache/camel/example/websocket/CamelTwitterWebSocketMain.java
index 232f58a..2f947aa 100644
--- a/examples/camel-example-twitter-websocket/src/main/java/org/apache/camel/example/websocket/CamelTwitterWebSocketMain.java
+++ b/examples/camel-example-twitter-websocket/src/main/java/org/apache/camel/example/websocket/CamelTwitterWebSocketMain.java
@@ -59,8 +59,10 @@ public final class CamelTwitterWebSocketMain {
route.setConsumerSecret(consumerSecret);
// poll for gaga, every 5nd second
+ // twitter rate limits 180 per 15 min, so that is 0.2/sec, eg 1/5sec.
+ // so to be safe we do 6 seconds
route.setSearchTerm("gaga");
- route.setDelay(5000);
+ route.setDelay(6000);
// web socket on port 9090
route.setPort(9090);