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



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?


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