Class LiveMapUpdate

java.lang.Object
io.ably.lib.objects.type.ObjectUpdate
io.ably.lib.objects.type.map.LiveMapUpdate

public class LiveMapUpdate extends ObjectUpdate
Represents an update that occurred on a LiveMap object. Contains information about which keys were modified and whether they were updated or removed.
  • Constructor Details

    • LiveMapUpdate

      public LiveMapUpdate()
      Creates a no-op LiveMapUpdate representing no actual change.
    • LiveMapUpdate

      public LiveMapUpdate(@NotNull @NotNull Map<String,LiveMapUpdate.Change> update)
      Creates a LiveMapUpdate with the specified key changes.
      Parameters:
      update - map of key names to their change types (UPDATED or REMOVED)
  • Method Details

    • getUpdate

      @NotNull public @NotNull Map<String,LiveMapUpdate.Change> getUpdate()
      Gets the map of key changes that occurred in this update.
      Returns:
      map of key names to their change types
    • toString

      public String toString()
      Returns a string representation of this LiveMapUpdate.
      Overrides:
      toString in class Object
      Returns:
      a string showing the map key changes in this update