- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/twitter/hbc
- 软件文档: https://github.com/twitter/hbc
软件介绍
hbc (Hosebird Client)是Twitter Streaming API 的 Java 客户端开发包。
主要特性:
支持GZip、OAuth和分块(partitioning);
自动重新连接,并进行适当的backfill计数;
访问原始字节的有效负载;
适时重新分配,并进行相关统计。
包含了2个主要模块:
hbc-core:该模块使用了一个简单的消息队列,用户可以轮询消息。
hbc-twitter4j:该模块允许开发者在消息队列中使用Twitter4J项目和它的数据模型,以提供一个分析层。
示例代码:
ClientBuilder builder = new ClientBuilder() .name("Hosebird-Client-01") // optional: mainly for the logs .hosts(hosebirdHosts) .authentication(hosebirdAuth) .endpoint(hosebirdEndpoint) .processor(new StringDelimitedProcessor(msgQueue)) .eventMessageQueue(eventQueue); // optional: use this if you want to process client events Client hosebirdClient = builder.build(); // Attempts to establish a connection. hosebirdClient.connect(); // on a different thread, or multiple different threads.... while (!client.isDone()) { String msg = msgQueue.take(); something(msg); profit(); } hosebirdClient.shutdown();
Effective STL中文版
[美] Scott Meyers / 潘爱民、陈铭、邹开红 / 电子工业出版社 / 2013-5 / 59.00元
《Effective STL中文版:50条有效使用STL的经验》是EffectiveC++的第3卷,被评为“值得所有C++程序员阅读的C++书籍之一”。《Effective STL中文版:50条有效使用STL的经验》详细讲述了使用STL的50条指导原则,并提供了透彻的分析和深刻的实例,实用性极强,是C++程序员必备的基础书籍。C++的标准模板库(STL)是革命性的,要用好STL并不容易。《Effe......一起来看看 《Effective STL中文版》 这本书的介绍吧!