net.rim.pushsdk.subscription.sync
Class SubSyncByAddressManager
java.lang.Object
net.rim.pushsdk.subscription.sync.SubscriberSyncManager
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubSyncByAddressManager
public SubSyncByAddressManager()
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 syncedaddressSubIdMap - the mapping of address back to subscriber idstatus - 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.