|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotificationProcessorService
Business logic relating to the processing of result notifications (acknowledgements).
This processing will be asynchronous and threaded.
| Method Summary | |
|---|---|
void |
addNotification(Notification notification)
Adds a notification to the queue waiting to be processed. |
void |
destroy()
Attempts to stop threads when the bean is destroyed. |
int |
getNotificationProcessorActiveThreadCount()
Returns the number of threads actively processing notifications. |
int |
getNotificationProcessorQueueSize()
Returns the size of the result notification queue. |
int |
getNotificationProcessorThreadPoolSize()
Returns the number of threads currently in the thread pool (active and idle). |
int |
getNotificationProcessorWorkQueueSize()
Returns the size of the work queue which holds tasks (Runnables) waiting to be picked up and processed using an active thread. |
boolean |
isResultNotificationQueueFull()
Determines whether or not the processing queue is already full. |
void |
processNotifications(List<Notification> notifications)
Note that this method is used internally by the SDK and should not normally be externally invoked or overridden. |
void |
reconcile(List<Notification> notifications)
Note that this method is used internally by the SDK and should not normally be externally invoked or overridden. |
void |
run()
Processes a series of notifications from the processing queue. |
void |
setNotificationListenerService(NotificationListenerService notificationListenerService)
Support for dependency injection. |
void |
setPushApplicationService(PushApplicationService pushApplicationService)
Support for dependency injection. |
void |
setPushCountService(PushCountService pushCountService)
Support for dependency injection. |
void |
setPushRequestDetailService(PushRequestDetailService pushRequestDetailService)
Support for dependency injection. |
void |
setPushRequestService(PushRequestService pushRequestService)
Support for dependency injection. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
setSubscriptionService(SubscriptionService subscriptionService)
Support for dependency injection. |
| Method Detail |
|---|
void addNotification(Notification notification)
throws PushSDKException
notification - a notification to be processed
PushSDKException - if the notification could not be added to the queue because the queue is fullvoid run()
processNotifications method to be processed.
run in interface Runnableboolean isResultNotificationQueueFull()
void processNotifications(List<Notification> notifications)
throws PushSDKException
storePushRequest set to
true; This includes updating the status of the push request details in the repository - if the original push
was made to the push application with autoDeleteRequests set to true; the push request and it's
details will be permanently removed from the persistent storebypassSubscription case): automatically unsubscribe a user when the
result notification indicates that the specified address was not recognized by the PPG (i.e. 2002 status code)
notifications - list of value objects that represent notifications
PushSDKException - if the result notifications cannot be processed for various reasons
void reconcile(List<Notification> notifications)
throws PushSDKException
notifications - list of value objects that represent notifications
PushSDKException - if the result notifications cannot be processed for various reasonsint getNotificationProcessorQueueSize()
int getNotificationProcessorActiveThreadCount()
int getNotificationProcessorThreadPoolSize()
int getNotificationProcessorWorkQueueSize()
void destroy()
void setPushApplicationService(PushApplicationService pushApplicationService)
PushApplicationService collaborating object -
this is used to interface with the business service that manages push applications.
pushApplicationService - an instance of a PushApplicationService implementation (must be thread safe)void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushSDKProperties collaborating object - this
is used to read global configuration properties.
pushSDKProperties - an instance of a PushSDKProperties implementation (must be thread safe)void setPushCountService(PushCountService pushCountService)
PushCountService collaborating object - this
is used to interface with the business service that manages tracking pushes that are complete.
pushCountService - an instance of a PushCountService implementation (must be thread safe)void setPushRequestDetailService(PushRequestDetailService pushRequestDetailService)
PushRequestDetailService collaborating object
- this is used to interface with the business service that manages push request details.
pushRequestDetailService - an instance of a PushRequestDetailService implementation (must be thread safe)void setSubscriptionService(SubscriptionService subscriptionService)
SubscriptionService collaborating object -
this is used to interface with the business service that manages subscribers.
subscriptionService - an instance of a SubscriptionService implementation (must be thread safe)void setPushRequestService(PushRequestService pushRequestService)
PushRequestService collaborating object - this
is used to interface with the business service that manages push requests.
pushRequestService - an instance of a PushRequestService implementation (must be thread safe)void setNotificationListenerService(NotificationListenerService notificationListenerService)
NotificationListenerService collaborating
object - this is used to interface with the business service that manages notifying the acknowledgement listeners.
notificationListenerService - an instance of a NotificationListenerService implementation (must be thread safe)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||