简体   繁体   中英

twitter4j : Update filter of a running Stream

I am running a stream using twitter4j with a filter as follows -

    FilterQuery filter = new FilterQuery();
    filter.follow(userIds);
    twitterStream.filter(filter);

I need to update the filters like add new people to follow as follows - userIds.add(NEW_ID)

Can i do this without intercepting the flow or without halting and starting the existing twitterStream ?

您无法添加更多关注者,但可以使用其他凭据启动另一个流

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM