|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushQueue
A queue backed by an asynchronous notification thread or threads.
| Method Summary | |
|---|---|
PushQueue |
add(Payload payload,
Device device)
Queue a message for delivery. |
PushQueue |
add(PayloadPerDevice message)
Queue a message for delivery. |
PushQueue |
add(Payload payload,
String token)
Queue a message for delivery. |
void |
clearPushedNotifications()
Clear the internal lists of PushedNotification objects maintained by this queue. |
List<Exception> |
getCriticalExceptions()
Get a list of critical exceptions that underlying threads experienced. |
PushedNotifications |
getPushedNotifications()
Get a list of all notifications pushed through this queue. |
PushQueue |
start()
Start the transmission thread(s) working for the queue. |
| Method Detail |
|---|
PushQueue add(Payload payload,
String token)
throws InvalidDeviceTokenFormatException
payload - a payloadtoken - a device token
InvalidDeviceTokenFormatException
PushQueue add(Payload payload,
Device device)
payload - a payloaddevice - a device
PushQueue add(PayloadPerDevice message)
message - a payload/device pair
PushQueue start()
List<Exception> getCriticalExceptions()
PushedNotifications getPushedNotifications()
void clearPushedNotifications()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||