public interface OnSubscribeCallback extends SynchronousCallback
SUBSCRIBE message arrives
When a subscription was invalid it's possible to throw a
InvalidSubscriptionException.
Please note that the recommended way to handle Topic Permissions is
to use the OnAuthorizationCallback.| Modifier and Type | Method and Description |
|---|---|
void |
onSubscribe(SUBSCRIBE message,
ClientData clientData)
Called when a
SUBSCRIBE message arrives. |
priorityvoid onSubscribe(SUBSCRIBE message, ClientData clientData) throws InvalidSubscriptionException
SUBSCRIBE message arrives.message - the SUBSCRIBE messageclientData - the information about the clientInvalidSubscriptionException - when a subscription was invalidCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.