Package 

Interface LiveMapChange


  • 
    public interface LiveMapChange
    
                        

    Provides methods to subscribe to real-time updates on LiveMap objects. Enables clients to receive notifications when map entries are added, updated, or removed. Uses last-write-wins conflict resolution when multiple clients modify the same key.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface LiveMapChange.Listener

      Listener interface for receiving LiveMap updates.Spec: RTLO4b3

    • Method Summary

      Modifier and Type Method Description
      abstract ObjectsSubscription subscribe(@NotNull() LiveMapChange.Listener listener) Subscribes to real-time updates on this LiveMap object.Multiple listeners can be subscribed to the same object independently.
      abstract void unsubscribe(@NotNull() LiveMapChange.Listener listener) Unsubscribes a specific listener from receiving updates.Has no effect if the listener is not currently subscribed.
      abstract void unsubscribeAll() Unsubscribes all listeners from receiving updates.No notifications will be delivered until new listeners are subscribed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • subscribe

        @NonBlocking()@NotNull() abstract ObjectsSubscription subscribe(@NotNull() LiveMapChange.Listener listener)

        Subscribes to real-time updates on this LiveMap object.Multiple listeners can be subscribed to the same object independently.Spec: RTLO4b

        Parameters:
        listener - the listener to be notified of map updates
      • unsubscribe

        @NonBlocking() abstract void unsubscribe(@NotNull() LiveMapChange.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