public static class SubscriptionControl.SubscriptionByFilterCallback.Default extends Callback.Default implements SubscriptionControl.SubscriptionByFilterCallback
SubscriptionControl.SubscriptionByFilterCallback
.
This logs onComplete calls at 'debug' level and onRejected calls at 'error' level. This method may be overridden to perform more specific processing.
SubscriptionControl.SubscriptionByFilterCallback.Default
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onComplete(int numberSelected)
Called to indicate successful processing of the request at the
server.
|
void |
onRejected(Collection<ErrorReport> errors)
The filter was rejected.
|
onError
public void onComplete(int numberSelected)
SubscriptionControl.SubscriptionByFilterCallback
onComplete
in interface SubscriptionControl.SubscriptionByFilterCallback
numberSelected
- the number of sessions that satisfied the
filter and qualified for subscription/unsubscription. This
will be 0 if no sessions satisfied the filter.public void onRejected(Collection<ErrorReport> errors)
SubscriptionControl.SubscriptionByFilterCallback
onRejected
in interface SubscriptionControl.SubscriptionByFilterCallback
errors
- the detail of why the filter was rejectedCopyright © 2022 Push Technology Ltd. All Rights Reserved.