public interface NotificationTransport extends KaaTransport
KaaTransport
for the Notification service.
Updates the Notification manager state.Modifier and Type | Method and Description |
---|---|
org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest |
createEmptyNotificationRequest()
Creates a new empty Notification request.
|
org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest |
createNotificationRequest()
Creates a new Notification request.
|
void |
onNotificationResponse(org.kaaproject.kaa.common.endpoint.gen.NotificationSyncResponse response)
Updates the state of the Notification manager according to the given response.
|
void |
onSubscriptionChanged(List<org.kaaproject.kaa.common.endpoint.gen.SubscriptionCommand> commands)
Notify about new subscription info.
|
void |
setNotificationProcessor(NotificationProcessor processor)
Sets the given Notification processor.
|
setChannelManager, setClientState, sync
org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest createNotificationRequest()
NotificationSyncRequest
org.kaaproject.kaa.common.endpoint.gen.NotificationSyncRequest createEmptyNotificationRequest()
NotificationSyncRequest
void onNotificationResponse(org.kaaproject.kaa.common.endpoint.gen.NotificationSyncResponse response) throws Exception
response
- the response from the server.Exception
NotificationSyncResponse
void setNotificationProcessor(NotificationProcessor processor)
processor
- the Notification processor which to be set.NotificationProcessor
void onSubscriptionChanged(List<org.kaaproject.kaa.common.endpoint.gen.SubscriptionCommand> commands)
Notify about new subscription info.
Will be called when one either subscribes or unsubscribes on\from some optional topic(s).
commands
- Info about subscription actions (subscribe/unsubscribe).Copyright © 2014. All rights reserved.