|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.sync.SubscriberSyncManager
public abstract class SubscriberSyncManager
Abstract class that is used in performing threaded subscriber status syncing.
Contains functionality shared between theSubSyncByAddressManager and SubSyncByStatusManager classes.
| Field Summary | |
|---|---|
protected ExecutorService |
executor
The executor used to execute the subscriber status syncing operations. |
protected Set<Future<SubscriberSyncResult>> |
futureList
The results of the subscriber status syncing process. |
protected String |
pushAppId
The id of the push application involved in subscriber status syncing. |
protected String |
pushAppPassword
The password of the push application involved in subscriber status syncing. |
protected PushSDKProperties |
pushSDKProperties
An instance of a PushSDKProperties implementation. |
protected SubscriptionService |
subscriptionService
An instance of a SubscriptionService implementation. |
| Constructor Summary | |
|---|---|
SubscriberSyncManager()
|
|
| Method Summary | |
|---|---|
String |
getPushAppId()
Gets the push application id associated with the subscriber sync manager. |
String |
getPushAppPassword()
Gets the push application password associated with the subscriber sync manager. |
SubscriberSyncResult |
getSubscriberSyncResult()
Returns the result of performing a subscriber status sync operation. |
void |
setPushAppId(String pushAppId)
Sets the push application id associated with the subscriber sync manager. |
void |
setPushAppPassword(String pushAppPassword)
Sets the push application password associated with the subscriber sync manager. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
setSubscriptionService(SubscriptionService subscriptionService)
Support for dependency injection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Field Detail |
|---|
protected PushSDKProperties pushSDKProperties
PushSDKProperties implementation. Properties used include: subscription.ppg.sync.threads,
subscription.ppg.sync.queuesize.
protected SubscriptionService subscriptionService
SubscriptionService implementation.
protected String pushAppId
protected String pushAppPassword
protected Set<Future<SubscriberSyncResult>> futureList
protected ExecutorService executor
| Constructor Detail |
|---|
public SubscriberSyncManager()
| Method Detail |
|---|
public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushSDKProperties implementation.
pushSDKProperties - public void setSubscriptionService(SubscriptionService subscriptionService)
SubscriptionService collaborating object.
subscriptionService - an instance of a SubscriptionService implementation (must be thread safe)public void setPushAppId(String pushAppId)
pushAppId - the push application idpublic void setPushAppPassword(String pushAppPassword)
pushAppPassword - the push application passwordpublic String getPushAppId()
public String getPushAppPassword()
public SubscriberSyncResult getSubscriberSyncResult()
throws InvalidPushAppException,
SubQueryFailureException,
PushSDKException
InvalidPushAppException - if the push application the sync is being performed for could not be found
SubQueryFailureException - if the request message sent to the PPG for the sync could not be processed successfully
PushSDKException - if any unrecoverable errors occurred for the sync request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||