|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.match.SubStatusMatchManager
public class SubStatusMatchManager
Performs threaded subscription matching to retrieve a list of subscriber ids for a push application that have a certain status (e.g. ACTIVE) and were found in a given list of subscriber ids.
The algorithm used here is:matchSubscriptions method,
findByAppIdAndStatus method from the SubscriptionService interface.getSubscriptionMatchResults method.
| Constructor Summary | |
|---|---|
SubStatusMatchManager()
|
|
| Method Summary | |
|---|---|
Set<String> |
call()
Pulls a match request off the queue and performs the subscription matching for that one request. |
Set<String> |
getSubscriptionMatchResults()
This method must be called after all matchSubscriptions() method calls have been made with requests. |
void |
matchSubscriptions(String pushAppId,
Set<String> subscriberIds,
SubscriberStatus status,
int fromIndex,
int toIndex)
Initiates the process to match the subscriptions from storage with the ones from the given subscriber ids set. |
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 |
| Constructor Detail |
|---|
public SubStatusMatchManager()
| 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 matchSubscriptions(String pushAppId,
Set<String> subscriberIds,
SubscriberStatus status,
int fromIndex,
int toIndex)
pushAppId - the id of a push applicationsubscriberIds - the subscriber ids to matchstatus - the status of the subscribers to look for in storagefromIndex - the row/entry number in storage to start looking for subscribers attoIndex - the row/entry number in storage to stop looking for subscribers at
public Set<String> getSubscriptionMatchResults()
throws ExecutionException,
InterruptedException
matchSubscriptions() method calls have been made with requests.
ExecutionException - if the computation threw an exception
InterruptedException - if the computation was interrupted while processingpublic Set<String> call()
call in interface Callable<Set<String>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||