- 授权协议: BSD
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/hengyunabc/zpush
- 软件文档: https://github.com/hengyunabc/zpush
软件介绍
Apple APNs java client, based on netty4.
基于netty4实现的苹果通知推送服务Java客户端。
特点:
-
支持第三版通知推送,即command = 2。目前的绝大部分Java客户端都只支持command = 1,即第二版。
-
支持SSL握手成功才返回,可以调用 pushManager.start().sync(); 等待握手成功才开始发送;
-
最大限度重试发送,内部自动处理重连,错误重发机制;
-
支持配置RejectListener,即通知被Apple服务器拒绝之后的回调接口;
-
支持配置ShutdownListener,即当shutdown时,没有发送完的消息处理的回调接口;
-
支持发送统计信息;
-
实现组件分离,可以利用PushClient,FeedbackClient来写一些灵活的代码。
-
Notification发送者可以自己定义设置发送的Queue,自己灵活处理阻塞,超时等问题。
Example:
更多的例子在src/test/java 目录下。
public class MainExample {
public static void main(String[] args) throws InterruptedException {
Environment environment = Environment.Product;
String password = "123456";
String keystore = "/home/hengyunabc/test/apptype/app_type_1/productAPNS.p12";
PushManager pushManager = new PushManagerImpl(keystore, password, environment);
//set a push queue
BlockingQueuequeue = new LinkedBlockingQueue(8192);
pushManager.setQueue(queue );
//waiting for SSL handshake success
pushManager.start().sync();
//build a notification
String token = "5f6aa01d8e3358949b7c25d461bb78ad740f4707462c7eafbebcf74fa5ddb387";
Notification notification = new NotificationBuilder()
.setToken(token)
.setBadge(1)
.setPriority(5)
.setAlertBody("xxxxx").build();
//put notification into the queue
queue.put(notification);
TimeUnit.SECONDS.sleep(10);
//get statistic info
Statistic statistic = pushManager.getStatistic();
System.out.println(statistic);
}
}
WWW信息体系结构(影印版第2版)
Louis Rosenfeld / 清华大学出版社 / 2003-6 / 49.8
如今的网站和内联网已经变得比以前越来越大,越来越有价值,而且越来越复杂,同时其用户也变得更忙,也更加不能容忍错误的发生。数目庞大的信息、快速的变化、新兴的技术和公司策略是设计师、信息体系结构构建师和网站管理员必须面对的事情,而这些已经让某些网让看起来像是个快速增长却规划很差的城市——到处都是路,却无法导航。规划精良的信息体系结构当前正是最关键性的。 本书介绍的是如何使用美学和机械学的理念创建......一起来看看 《WWW信息体系结构(影印版第2版)》 这本书的介绍吧!
