|
|||||||||
| 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()
Deprecated. |
List<Exception> |
getCriticalExceptions()
Get a list of critical exceptions that underlying threads experienced. |
PushedNotifications |
getPushedNotifications(boolean clearList)
Get a list of all notifications pushed through this queue. |
PushQueue |
start()
Start the transmission thread(s) working for the queue. |
void |
stopQueue()
Invoke stopQueue on all threads 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()
void stopQueue()
List<Exception> getCriticalExceptions()
PushedNotifications getPushedNotifications(boolean clearList)
@Deprecated void clearPushedNotifications()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||