public class AttributeSubscriptionAdapter<T> extends Object implements AttributeSubscriptionListener<T>
| Constructor and Description |
|---|
AttributeSubscriptionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(JoynrRuntimeException error)
Gets called on every error that is detected on the subscription.
|
void |
onReceive(T value)
Gets called on every received publication
Since the onReceive callback is called by a communication middleware thread, it should not
be blocked, wait for user interaction, or do larger computation.
|
void |
onSubscribed(String subscriptionId)
Gets called when the subscription is successfully registered at the provider.
|
public void onSubscribed(String subscriptionId)
SubscriptionListeneronSubscribed in interface SubscriptionListenersubscriptionId - the subscription id of the subscription as stringpublic void onReceive(T value)
AttributeSubscriptionListeneronReceive in interface AttributeSubscriptionListener<T>value - associated with the subscription this listener is listening topublic void onError(JoynrRuntimeException error)
AttributeSubscriptionListeneronError in interface AttributeSubscriptionListener<T>error - JoynrRuntimeException describing the errorCopyright © 2021. All rights reserved.