Comments (7)
不是这样的。我们假设queue有ABCDEF这6条消息,假设第三条C出错了,那么就会跳过C,把DEF重发一遍。所以不会出现你说的情况。
from dbay-apns-for-java.
多谢,我再仔细看一下代码。其实我在研究在你这个基础上,怎么能让发送者知道所有发送任务已经执行完成。比如10个token,循环发送,怎么知道什么时候真正发送完成?
from dbay-apns-for-java.
苹果的APNS接口是这么设计的:你发条通知过去,成功与否不知道,得等着,等多少时间呢,1分钟,2分钟,1个小时。。。也不知道。 HTTP协议有request和response,苹果的接口相当于只有request而没有response。所以不确定是否发送成功。
因此这个类库设计时就采用了异步。如果你想知道咱们的消息是否通过网络发出去了,抱歉,现在没有提供回调接口,不过你可以改改源代码来满足你的需求
from dbay-apns-for-java.
这个我知道。其实我只是想知道所有“发送”动作是不是都做完,因为这里用到线程池发送,在重发机制里面又用到 Thread.start(),所以顶层的调用主线程没办法知道是不是所有的子线程已经执行完。我要的就是这个效果而已。
多谢多谢。
from dbay-apns-for-java.
作者,您好。一次推送完成,是否有成功多少?失败多少的api呢
from dbay-apns-for-java.
不会,因为失败的再次发送也会失败,所以会丢弃
from dbay-apns-for-java.
我的意思是,是否有成功多少、失败多少的统计结果
from dbay-apns-for-java.
Related Issues (20)
- 你好,百万级的话大概需要多久时间
- 跪求作者答疑 HOT 4
- RamosLi请问我一次性推送上百万token,几秒钟不到都推送完了,正常吗?
- IOS推送字节限制提升到2048字节了吗 HOT 2
- 关于startErrorWorker中closeSocket(curSocket);问题
- 昨天突然发现PUSH出现异常,请教作者同志
- com.dbay.apns4j.impl.ApnsConnectionImpl [10] dev-10 Connection reset
- It can not run in jdk 1.7 HOT 2
- 11:05:02,310 ERROR ApnsConnectionImpl:178 - pro-1 Broken pipe
- com.dbay.apns4j.impl.ApnsConnectionImpl.startErrorWorker() HOT 1
- iOS证书过期之后,用新的证书报错如下,是证书的问题吗?
- 批量发送
- Do we support authKey.p8?
- support title-loc-key?
- 发送完成后怎么拿到应答
- 不同产品推送问题 HOT 1
- feedback service问题 HOT 1
- 有多应用,多证书ApnsServiceImpl创建的问题 HOT 6
- apns证书问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbay-apns-for-java.