net.rim.pushsdk.pushappmgmt
Class PushAppUnsubscribeManager

java.lang.Object
  extended by net.rim.pushsdk.pushappmgmt.PushAppUnsubscribeManager
All Implemented Interfaces:
Runnable

public class PushAppUnsubscribeManager
extends Object
implements Runnable

Performs threaded unsubscribe operations on users belonging to a push application that is in the process of being hard deleted.

Author:
mdandrea

Constructor Summary
PushAppUnsubscribeManager()
           
 
Method Summary
 void awaitCompletion()
          Waits for the completion of the unsubscribe of the subscribers of a push application.
 void run()
          Performs an unsubscribe operation on a user.
 void setPushApplicationId(String pushApplicationId)
          Sets the id of the push application that is having its subscribers unsubscribed.
 void setPushSDKProperties(PushSDKProperties pushSDKProperties)
          Sets a PushSDKProperties object to use.
 void setSubscriptionService(SubscriptionService subscriptionService)
          Sets a SubscriptionService object to use.
 void unsubscribe(UnsubscribeRequest unsubRequest)
          Performs an unsubscribe operation on a user.
 void unsubscribeSubscribers(SubscriberStatus status)
          Unsubscribe a set of subscribers to a push application with the given status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushAppUnsubscribeManager

public PushAppUnsubscribeManager()
Method Detail

setPushSDKProperties

public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
Sets a PushSDKProperties object to use.

Parameters:
pushSDKProperties - an instance of a PushSDKProperties implementation

setSubscriptionService

public void setSubscriptionService(SubscriptionService subscriptionService)
Sets a SubscriptionService object to use.

Parameters:
subscriptionService - an instance of a SubscriptionService implementation

setPushApplicationId

public void setPushApplicationId(String pushApplicationId)
Sets the id of the push application that is having its subscribers unsubscribed.

Parameters:
pushApplicationId - the id of the push application

awaitCompletion

public void awaitCompletion()
Waits for the completion of the unsubscribe of the subscribers of a push application.


unsubscribeSubscribers

public void unsubscribeSubscribers(SubscriberStatus status)
                            throws PushSDKException
Unsubscribe a set of subscribers to a push application with the given status.

Parameters:
status - a subscriber status
Throws:
PushSDKException - if any errors occur

unsubscribe

public void unsubscribe(UnsubscribeRequest unsubRequest)
Performs an unsubscribe operation on a user.

Parameters:
unsubRequest - the unsubscribe request

run

public void run()
Performs an unsubscribe operation on a user.

Specified by:
run in interface Runnable


Copyright © 2011 Research In Motion. All Rights Reserved.