froh42/java-apns — pull request #14 by mzachar (2013-02-12 15:25:07+00:00)
Title: Batch APNS service

Messages send are aggregated into batch and send once the batch is started. You can specify delayTime to wait for the batch to start after first message is received - so if more messages are received within the time they are aggregated and send as one batch.

Each batch will open new connection and send all the messages using the same connection which is closed after done.

This way you do not need to keep connection open all the time and also reuse it for multiple notifications.

Also note:
Reconnect policy will take place for connection that is used in batch. So either NEVER or EVERY_HALF_HOUR is meaningful. EVERY_HALF_HOUR will be usable only if the single batch is running longer than 1/2 hour.