C
- context object typepublic static class SubscriptionControl.SubscriptionByFilterContextCallback.Default<C> extends ContextCallback.Default<C> implements SubscriptionControl.SubscriptionByFilterContextCallback<C>
SubscriptionControl.SubscriptionByFilterContextCallback
.
This logs onComplete calls at 'debug' level and onRejected calls at 'error' level. This method may be overridden to perform more specific processing.
SubscriptionControl.SubscriptionByFilterContextCallback.Default<C>
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onComplete(C context,
int numberSelected)
Called to indicate successful processing of the request at the
server.
|
void |
onRejected(C context,
Collection<ErrorReport> errors)
The filter was rejected.
|
onError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onError
public void onComplete(C context, int numberSelected)
SubscriptionControl.SubscriptionByFilterContextCallback
onComplete
in interface SubscriptionControl.SubscriptionByFilterContextCallback<C>
context
- the context object the application supplied when
making the call; may be null
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(C context, Collection<ErrorReport> errors)
SubscriptionControl.SubscriptionByFilterContextCallback
onRejected
in interface SubscriptionControl.SubscriptionByFilterContextCallback<C>
context
- the context object supplied when making the callerrors
- the detail of why the filter was rejectedCopyright © 2022 Push Technology Ltd. All Rights Reserved.