public final class NotificationHelper
extends java.lang.Object
Notification| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
CarrierTopics
Array containing the topics used for distributing notifications.
|
static int |
CONSUMER_ALIVE_NOTIFICATION
Subscription keep-alive notification.
|
static int |
CONSUMER_CLOSE_NOTIFICATION
Subscriber close notification.
|
static int |
CONSUMER_NOTIFICATION
Subscription related notification.
|
static int |
CONSUMER_OPEN_NOTIFICATION
Subscriber open notification.
|
static int |
NOTIFICATION
Generic notification.
|
static java.lang.String |
NOTIFICATION_TYPE_PROPERTY
Message property name identifying the notification type.
|
static java.lang.String |
SELECTOR_PROPERTY
Message property name identifying the selector the notification is about.
|
static java.lang.String |
SUBSCRIPTION_ID_PROPERTY
Message property name identifying the subscription the notification is about.
|
static java.lang.String |
TOPIC_PROPERTY
Message property name identifying the topic the notification is about.
|
| Constructor and Description |
|---|
NotificationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNotification(java.lang.String topic)
Return true if the topic is a notification topic.
|
static Notification |
messageToNotification(Message m)
Convert a Message into a Notification.
|
public static final java.lang.String[] CarrierTopics
public static final int NOTIFICATION
public static final int CONSUMER_NOTIFICATION
public static final int CONSUMER_OPEN_NOTIFICATION
public static final int CONSUMER_CLOSE_NOTIFICATION
public static final int CONSUMER_ALIVE_NOTIFICATION
public static final java.lang.String NOTIFICATION_TYPE_PROPERTY
public static final java.lang.String TOPIC_PROPERTY
public static final java.lang.String SELECTOR_PROPERTY
public static final java.lang.String SUBSCRIPTION_ID_PROPERTY
public static final boolean isNotification(java.lang.String topic)
topic - The topic to check.public static Notification messageToNotification(Message m)
m - The Message to convert