Package joynr.infrastructure
Class GlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastAdapter
- java.lang.Object
-
- joynr.infrastructure.GlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastAdapter
-
- All Implemented Interfaces:
BroadcastSubscriptionListener,SubscriptionListener,GlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastListener
- Enclosing interface:
- GlobalCapabilitiesDirectoryBroadcastInterface
public static class GlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastAdapter extends Object implements GlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastListener
-
-
Constructor Summary
Constructors Constructor Description GlobalDiscoveryEntryChangedBroadcastAdapter()
-
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(ChangeType typeOfChange, GlobalDiscoveryEntry globalDiscoveryEntry)voidonSubscribed(String subscriptionId)Gets called when the subscription is successfully registered at the provider.
-
-
-
Method Detail
-
onReceive
public void onReceive(ChangeType typeOfChange, GlobalDiscoveryEntry globalDiscoveryEntry)
- Specified by:
onReceivein interfaceGlobalCapabilitiesDirectoryBroadcastInterface.GlobalDiscoveryEntryChangedBroadcastListener
-
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
-
-