[英]twitter4j : Update filter of a running Stream
I am running a stream using twitter4j with a filter as follows - 我正在使用带有过滤器的twitter4j运行流,如下所示-
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) 我需要更新过滤器,例如添加新人,如下所示-userIds.add(NEW_ID)
Can i do this without intercepting the flow or without halting and starting the existing twitterStream ? 我可以在不拦截流或不停止并启动现有twitterStream的情况下执行此操作吗?
您无法添加更多关注者,但可以使用其他凭据启动另一个流
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.