|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.match.SubActiveMatchManager
public class SubActiveMatchManager
Performs threaded subscription matching to retrieve a list of active subscriber ids and addresses for a push application that were found in a given list of subscriber ids.
This uses the same matching algorithm as that found inSubStatusMatchManager.
SubStatusMatchManager| Constructor Summary | |
|---|---|
SubActiveMatchManager()
|
|
| Method Summary | |
|---|---|
SubActiveMatchResult |
call()
Pulls a match request off the queue and performs the subscription matching for that one request. |
SubActiveMatchResult |
getSubscriptionMatchResults()
This method must be called after all matchSubscriptions() method calls have been made with requests. |
void |
matchSubscriptions(String pushAppId,
Set<String> subscriberIds,
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 SubActiveMatchManager()
| 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,
int fromIndex,
int toIndex)
pushAppId - the id of a push applicationsubscriberIds - the subscriber ids to matchfromIndex - 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 SubActiveMatchResult 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 SubActiveMatchResult call()
call in interface Callable<SubActiveMatchResult>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||