Package io.joynr.pubsub.subscription
Interface AttributeSubscriptionListener<T>
-
- All Superinterfaces:
SubscriptionListener
- All Known Implementing Classes:
AttributeSubscriptionAdapter
public interface AttributeSubscriptionListener<T> extends SubscriptionListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(JoynrRuntimeException error)Gets called on every error that is detected on the subscription.voidonReceive(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.-
Methods inherited from interface io.joynr.pubsub.subscription.SubscriptionListener
onSubscribed
-
-
-
-
Method Detail
-
onReceive
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.- Parameters:
value- associated with the subscription this listener is listening to
-
onError
void onError(JoynrRuntimeException error)
Gets called on every error that is detected on the subscription. Since the onError callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.- Parameters:
error- JoynrRuntimeException describing the error
-
-