Hello,

I see a lot of questions about AsyncClient. Can anyone address my question
below? I would really appreciate the help.

-Ahmed

On Fri, Jun 29, 2012 at 12:52 AM, Ahmed Abdeen Hamed <
[email protected]> wrote:

> Hello,
>
> I am trying to use the AsyncClientHttpExchangeStreaming example to read
> status updates from social media networks such as Twitter or Facebook.
> However, the program reads one chunk and terminates. What I need is to have
> the program read each user status when it arrives, and go to sleep if there
> is nothing to do, but not terminating. So I commented the shutdown() and
> replace it with a sleep() as following:
>
>         } finally {
>
>             //httpclient.shutdown();
>
>         Thread.sleep(50);
>
>         }
>
> Though, the program doesn't terminate, it also doesn't return the new
> status. How can I make this possible? Here is an example stream URL:["
> https://graph.facebook.com/search?q=lunch";]
>
> Any help will be much appreciated!
>
> Thanks,
>
> -Ahmed
>
>
>

Reply via email to