|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.acknowledgement.NotificationListenerServiceImpl
public class NotificationListenerServiceImpl
Implementation of the NotificationListenerService interface.
| Constructor Summary | |
|---|---|
NotificationListenerServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addListeners(Map<String,List<NotificationListener>> newListeners)
Adds NotificationListener(s) to the collection of listeners that will be notified when a new result
notification is received. |
void |
destroy()
Attempts to stop threads when the bean is destroyed. |
int |
getNotificationListenerActiveThreadCount()
Returns the number of threads actively calling notification listeners. |
int |
getNotificationListenerThreadPoolSize()
Returns the number of threads currently in the thread pool (active and idle). |
int |
getNotificationListenerWorkQueueSize()
Returns the size of the work queue which holds tasks (Runnables) waiting to be picked up and processed using an active thread. |
void |
notifyListeners(Notification notification)
Note that this method is used internally by the SDK and should not normally be externally invoked or overridden. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationListenerServiceImpl()
| Method Detail |
|---|
public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
NotificationListenerServicePushSDKProperties collaborating object - this
is used to read global configuration properties.
setPushSDKProperties in interface NotificationListenerServicepushSDKProperties - an instance of a PushSDKProperties implementation (must be thread safe)public void destroy()
NotificationListenerService
destroy in interface NotificationListenerServicepublic int getNotificationListenerActiveThreadCount()
NotificationListenerService
getNotificationListenerActiveThreadCount in interface NotificationListenerServicepublic int getNotificationListenerThreadPoolSize()
NotificationListenerService
getNotificationListenerThreadPoolSize in interface NotificationListenerServicepublic int getNotificationListenerWorkQueueSize()
NotificationListenerService
getNotificationListenerWorkQueueSize in interface NotificationListenerServicepublic void addListeners(Map<String,List<NotificationListener>> newListeners)
NotificationListenerServiceNotificationListener(s) to the collection of listeners that will be notified when a new result
notification is received.
addListeners in interface NotificationListenerServicenewListeners - map of listeners that register for receiving result notifications. The map keys are push application ids, the
values are the listeners that register for the application's notifications.public void notifyListeners(Notification notification)
NotificationListenerService
notifyListeners in interface NotificationListenerServicenotification - value object that represents a notification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||