Package io.ably.lib.liveobjects.message
Interface ObjectsMapEntry
public interface ObjectsMapEntry
Represents the value at a given key in a
LiveMap object.
Spec: OME1
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectDatagetData()Returns the data that represents the value of the map entry.@Nullable LongReturns the timestamp derived from thetimeserialof this entry, as milliseconds since the epoch.@Nullable StringReturns the serial value of the latest operation that was applied to the map entry.@Nullable BooleanIndicates whether the map entry has been removed.
-
Method Details
-
getTombstone
Indicates whether the map entry has been removed.Spec: OME2a
- Returns:
-
trueif the entry is tombstoned, ornullif unavailable
-
getTimeserial
Returns the serial value of the latest operation that was applied to the map entry.Spec: OME2b
- Returns:
- the entry timeserial, or
nullif unavailable
-
getSerialTimestamp
Returns the timestamp derived from thetimeserialof this entry, as milliseconds since the epoch. Only present ifgetTombstone()istrue.Spec: OME2d
- Returns:
- the serial timestamp in milliseconds since the epoch, or
nullif unavailable
-
getData
Returns the data that represents the value of the map entry.Spec: OME2c
- Returns:
- the entry value, or
nullif unavailable
-