| Package | Description |
|---|---|
| javapns |
The JavaPNS library
|
| javapns.notification |
Classes for pushing notifications through Apple servers.
|
| javapns.notification.transmission |
Specialized classes for transmitting notifications to large number of devices.
|
| Modifier and Type | Method and Description |
|---|---|
static PushedNotifications |
Push.payload(Payload payload,
Object keystore,
String password,
boolean production,
int numberOfThreads,
Object devices)
Push a preformatted payload to a list of devices using multiple simulatenous threads (and connections).
|
static PushedNotifications |
Push.payload(Payload payload,
Object keystore,
String password,
boolean production,
Object devices)
Push a preformatted payload to a list of devices.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NewsstandNotificationPayload
A Newsstand-specific payload compatible with the Apple Push Notification Service.
|
class |
PushNotificationBigPayload |
class |
PushNotificationPayload
A payload compatible with the Apple Push Notification Service.
|
| Modifier and Type | Method and Description |
|---|---|
Payload |
Payload.asSimulationOnly()
Enables a special simulation mode which causes the library to behave
as usual *except* that at the precise point where the payload would
actually be streamed out to Apple, it is not.
|
Payload |
PushedNotification.getPayload()
Returns the payload that was pushed.
|
Payload |
PayloadPerDevice.getPayload() |
| Modifier and Type | Method and Description |
|---|---|
PushedNotification |
PushNotificationManager.sendNotification(Device device,
Payload payload)
Send a notification to a single device and close the connection.
|
PushedNotification |
PushNotificationManager.sendNotification(Device device,
Payload payload,
boolean closeAfter)
Send a notification (Payload) to the given device
|
PushedNotification |
PushNotificationManager.sendNotification(Device device,
Payload payload,
boolean closeAfter,
int identifier)
Send a notification (Payload) to the given device
|
PushedNotification |
PushNotificationManager.sendNotification(Device device,
Payload payload,
int identifier)
Send a notification (Payload) to the given device
|
PushedNotifications |
PushNotificationManager.sendNotifications(Payload payload,
Device... devices)
Send a notification to a multiple devices in a single connection and close the connection.
|
PushedNotifications |
PushNotificationManager.sendNotifications(Payload payload,
List<Device> devices)
Send a notification to a multiple devices in a single connection and close the connection.
|
protected void |
PushedNotification.setPayload(Payload payload) |
| Constructor and Description |
|---|
PayloadPerDevice(Payload payload,
Device device) |
PayloadPerDevice(Payload payload,
String token) |
PushedNotification(Device device,
Payload payload) |
PushedNotification(Device device,
Payload payload,
Exception exception) |
| Modifier and Type | Method and Description |
|---|---|
PushQueue |
PushQueue.add(Payload payload,
Device device)
Queue a message for delivery.
|
PushQueue |
NotificationThreads.add(Payload payload,
Device device) |
PushQueue |
NotificationThread.add(Payload payload,
Device device) |
PushQueue |
PushQueue.add(Payload payload,
String token)
Queue a message for delivery.
|
PushQueue |
NotificationThreads.add(Payload payload,
String token) |
PushQueue |
NotificationThread.add(Payload payload,
String token) |
| Constructor and Description |
|---|
NotificationThread(NotificationThreads threads,
PushNotificationManager notificationManager,
AppleNotificationServer server,
Payload payload,
Object devices)
Create a grouped thread in LIST mode for pushing a single payload to a list of devices
and coordinating with a parent NotificationThreads object.
|
NotificationThread(PushNotificationManager notificationManager,
AppleNotificationServer server,
Payload payload,
Object devices)
Create a standalone thread in LIST mode for pushing a single payload to a list of devices.
|
NotificationThreads(AppleNotificationServer server,
Payload payload,
List<Device> devices,
int numberOfThreads)
Create the specified number of notification threads and spread the devices evenly between the threads.
|
NotificationThreads(Object keystore,
String password,
boolean production,
Payload payload,
List<Device> devices,
int numberOfThreads)
Create the specified number of notification threads and spread the devices evenly between the threads.
|
NotificationThreads(Object keystore,
String password,
boolean production,
Payload payload,
List<Device> devices,
List<NotificationThread> threads)
Spread the devices evenly between the provided threads.
|
NotificationThreads(Object keystore,
String password,
boolean production,
Payload payload,
List<NotificationThread> threads)
Use the provided threads which should already each have their group of devices to work with.
|
Copyright © 2016. All rights reserved.