Package io.ably.lib.liveobjects.instance
Interface InstanceSubscriptionEvent
public interface InstanceSubscriptionEvent
Event delivered to
InstanceListener.onUpdated(InstanceSubscriptionEvent) when
the LiveObject wrapped by a subscribed LiveMapInstance or
LiveCounterInstance is updated.
Spec: RTINS16e
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectMessageReturns theObjectMessagedescribing the operation that caused this event, if any.@NotNull InstanceReturns anInstancewrapping the LiveObject that was updated.
-
Method Details
-
getObject
Returns anInstancewrapping the LiveObject that was updated.Spec: RTINS16e1
- Returns:
- the updated instance
-
getMessage
Returns theObjectMessagedescribing the operation that caused this event, if any. The value is present whenever the underlying update carried an object message with an operation; otherwise it isnull.Spec: RTINS16e2 / PAOM1
- Returns:
- the source
ObjectMessage, ornullif unavailable
-