Implementation of the send service for Android.
This service should never be called directly, but instead be called via
SendServiceDelegator
.
This service limits the total number of simultanious connections to the GCM service to a maximum of 10 connections.
If another thread attempts to send another message and the connection limit has been reached, the thread will block
until a connection is available.
This implementation will send messages requested by the
sendPush(Push, List)
in batches of 1000 registration ids
per batch.
The
SendServiceDelegator
service ensures that the OS specific implementations are called in a
separate thread, calling this service directly can cause unexpected long waits in inappropriate threads.
This implementation's properties are set by spring injection if used as a bean.
Available spring properties are:
Property | Purpose |
google.api.key | Google API key |
push.google.gcm.host | URL for the GCM host |