Package joynr.system
Class MessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastAdapter
- java.lang.Object
-
- joynr.system.MessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastAdapter
-
- All Implemented Interfaces:
BroadcastSubscriptionListener,SubscriptionListener,MessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastListener
- Enclosing interface:
- MessageNotificationBroadcastInterface
public static class MessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastAdapter extends Object implements MessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastListener
-
-
Constructor Summary
Constructors Constructor Description MessageQueuedForDeliveryBroadcastAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonError(SubscriptionException error)Gets called if the subscription registration failed at the provider.voidonReceive(String participantId, String messageType)voidonSubscribed(String subscriptionId)Gets called when the subscription is successfully registered at the provider.
-
-
-
Method Detail
-
onReceive
public void onReceive(String participantId, String messageType)
- Specified by:
onReceivein interfaceMessageNotificationBroadcastInterface.MessageQueuedForDeliveryBroadcastListener
-
onError
public void onError(SubscriptionException error)
Description copied from interface:BroadcastSubscriptionListenerGets called if the subscription registration failed at the provider. Since the onError callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.- Specified by:
onErrorin interfaceBroadcastSubscriptionListener- Parameters:
error- JoynrRuntimeException describing the error
-
onSubscribed
public void onSubscribed(String subscriptionId)
Description copied from interface:SubscriptionListenerGets called when the subscription is successfully registered at the provider. Since the onSubscribed callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.- Specified by:
onSubscribedin interfaceSubscriptionListener- Parameters:
subscriptionId- the subscription id of the subscription as string
-
-