-
public interface LiveCounterChangeProvides methods to subscribe to real-time updates on LiveCounter objects. Enables clients to receive notifications when counter values change due to operations performed by any client connected to the same channel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceLiveCounterChange.ListenerListener interface for receiving LiveCounter updates.Spec: RTLO4b3
-
Method Summary
Modifier and Type Method Description abstract ObjectsSubscriptionsubscribe(@NotNull() LiveCounterChange.Listener listener)Subscribes to real-time updates on this LiveCounter object.Multiple listeners can be subscribed to the same object independently. abstract voidunsubscribe(@NotNull() LiveCounterChange.Listener listener)Unsubscribes a specific listener from receiving updates.Has no effect if the listener is not currently subscribed. abstract voidunsubscribeAll()Unsubscribes all listeners from receiving updates.No notifications will be delivered until new listeners are subscribed. -
-
Method Detail
-
subscribe
@NonBlocking()@NotNull() abstract ObjectsSubscription subscribe(@NotNull() LiveCounterChange.Listener listener)
Subscribes to real-time updates on this LiveCounter object.Multiple listeners can be subscribed to the same object independently.Spec: RTLO4b
- Parameters:
listener- the listener to be notified of counter updates
-
unsubscribe
@NonBlocking() abstract void unsubscribe(@NotNull() LiveCounterChange.Listener listener)
Unsubscribes a specific listener from receiving updates.Has no effect if the listener is not currently subscribed.Spec: RTLO4c
- Parameters:
listener- the listener to be unsubscribed
-
unsubscribeAll
@NonBlocking() abstract void unsubscribeAll()
Unsubscribes all listeners from receiving updates.No notifications will be delivered until new listeners are subscribed.Spec: RTLO4d
-
-
-
-