IcePush

icepush会创建Server与Client之间的类似Blocking的长连接。

主要API为:

//Group Mangagement
PushRenderer.addCurrentView(String groupName);
PushRenderer.addCurrentSession(String groupName);
PushRenderer.removeCurrentView(String groupName);
PushRenderer.removeCurrentSession(String groupName);

//Rendering
PushRenderer.render(String groupName);

主要参数设置为:

  • org.icepush.contextPath - Parameter used for changing the context path used by the blocking connection. This is needed when a notifications collected from multiple application and possibly servers are dispatch though single blocking connection.
  • org.icepush.disableRemoteHostLookup - Parameter used to enable/disable remote host lookup. If set to true remote address lookup is used instead of remote host lookup. The default value is false.
  • org.icepush.heartbeatTimeout - This parameter defines the interval of time (in milliseconds) during which the blocking connection will stay blocked, assuming there is no other activity inactivity. Once unblocked the client will create a new blocking connection thus effectively creating a server side initiated heartbeat mechanism. The default value is 10 seconds.
  • org.icepush.serverErrorRetryTimeouts - A space separated list of timeout intervals measured in milliseconds. When a server error is received the bridge will use the first interval in the list to delay the connection retry, if it receives a server error again it will use the second value and so on. Once the end of the list is reached the bridge will give up trying to establish the connection. The default value is 1000 2000 4000.
  • org.icepush.useAsyncContext - Parameter used to enable/disable Servlet 3.0 ARP (Asynchronous Request Processing) depending on the presence of Servlet 3.0. The default value depends on the presence of Servlet 3.0: if present the default value is true, if not present the default value is false.
  • org.icepush.pushIdTimeout - This parameter defines the interval of time (in milliseconds) of inactivity for a given pushId after which it is expired/discarded.
  • org.icepush.groupTimeout - This parameter defines the interval of time (in milliseconds) of inactivity for all pushIds belonging to a given group after which it is expired/discarded.
  • org.icepush.pushIdTimeout - This parameter defines the interval of time (in milliseconds) of inactivity for a given browserId after which it is expired/discarded.


参见:

http://www.icesoft.org/wiki/display/PUSH/Notification+Protocol+Overview

http://www.icesoft.org/wiki/display/ICE/Ajax+Push+-+APIs

http://www.icesoft.org/wiki/display/PUSH/ICEpush+Configuration+Parameters


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值