public interface PushQueue
| Modifier and Type | Method and Description |
|---|---|
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.
|
PushQueue add(Payload payload, String token) throws InvalidDeviceTokenFormatException
payload - a payloadtoken - a device tokenInvalidDeviceTokenFormatExceptionPushQueue add(Payload payload, Device device)
payload - a payloaddevice - a devicePushQueue add(PayloadPerDevice message)
message - a payload/device pairPushQueue start()
List<Exception> getCriticalExceptions()
PushedNotifications getPushedNotifications()
void clearPushedNotifications()
Copyright © 2016. All rights reserved.