How can I set number of tweets to stream in java api?

status
java
api

#1

I am looking to stream only 10 tweets in the onStatus method in java, once it has returned 10 I want the system to stop, How do I do this?


#2

You will have to code this in to your application; there is nothing in the Twitter API that enables this, sorry.