net.rim.pushsdk.subscription.sync
Class SubSyncByAddressManager

java.lang.Object
  extended by net.rim.pushsdk.subscription.sync.SubscriberSyncManager
      extended by net.rim.pushsdk.subscription.sync.SubSyncByAddressManager
All Implemented Interfaces:
Callable<SubscriberSyncResult>

public class SubSyncByAddressManager
extends SubscriberSyncManager

Performs threaded subscriber status syncing based on a request by address to the PPG.

Author:
mdandrea

Field Summary
 
Fields inherited from class net.rim.pushsdk.subscription.sync.SubscriberSyncManager
executor, futureList, pushAppId, pushAppPassword, pushSDKProperties, subscriptionService
 
Constructor Summary
SubSyncByAddressManager()
           
 
Method Summary
 SubscriberSyncResult call()
          Processes a single sync request by address.
 void processSyncRequest(Set<String> addresses, Map<String,String> addressSubIdMap, SubscriberStatus status)
          Processes a sync request by address.
 void setPushSDKProperties(PushSDKProperties pushSDKProperties)
          Support for dependency injection.
 void setSubscriptionQueryService(SubscriptionQueryService subscriptionQueryService)
          Support for dependency injection.
 
Methods inherited from class net.rim.pushsdk.subscription.sync.SubscriberSyncManager
getPushAppId, getPushAppPassword, getSubscriberSyncResult, setPushAppId, setPushAppPassword, setSubscriptionService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubSyncByAddressManager

public SubSyncByAddressManager()
Method Detail

setPushSDKProperties

public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
Description copied from class: SubscriberSyncManager
Support for dependency injection. This will override the default PushSDKProperties implementation.

Overrides:
setPushSDKProperties in class SubscriberSyncManager

setSubscriptionQueryService

public void setSubscriptionQueryService(SubscriptionQueryService subscriptionQueryService)
Support for dependency injection. Sets the SubscriptionQueryService to be used.

Parameters:
subscriptionQueryService - a Subscription Query Service Object

processSyncRequest

public void processSyncRequest(Set<String> addresses,
                               Map<String,String> addressSubIdMap,
                               SubscriberStatus status)
                        throws PushSDKException
Processes a sync request by address.

Parameters:
addresses - the addresses to be synced
addressSubIdMap - the mapping of address back to subscriber id
status - the statuses of the subscribers on the SDK side
Throws:
PushSDKException - if any errors occurred while adding the request to the queue

call

public SubscriberSyncResult call()
                          throws Exception
Processes a single sync request by address.

Throws:
Exception


Copyright © 2011 Research In Motion. All Rights Reserved.