I’m considering the use of camel-twitter (The Twitter Component for Apache Camel: http://camel.apache.org/twitter.html). I want to use Twitters Streaming API.
What is the difference between the types event and direct?
Does somebody have an example code for the usage of the event-driven consumer? (I only found this one so far https://fisheye6.atlassian.com/browse/camel/trunk/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/SearchEventTest.java)
The Direct type tells the consumer/producer that it will connect to Twitter each time the endpoint is activated somehow. Let’s say you want to use a schedule saved in your database to do searches on Twitter:
You will be rated, always. No matter if you use Streaming, Direct, or Polling.
In case you are using Streaming, please read this FAQ from Twitter Developer Center