11package io .ably .lib .objects ;
22
3- import io .ably .lib .types .Callback ;
43import org .jetbrains .annotations .Blocking ;
54import org .jetbrains .annotations .NonBlocking ;
65import org .jetbrains .annotations .Contract ;
@@ -24,6 +23,7 @@ public interface LiveMap {
2423 * If the value associated with the provided key is an objectId string of another LiveObject, a reference to that LiveObject
2524 * is returned, provided it exists in the local pool and is not tombstoned. Otherwise, null is returned.
2625 * If the value is not an objectId, then that value is returned.
26+ * Spec: RTLM5, RTLM5a
2727 *
2828 * @param keyName the key whose associated value is to be returned.
2929 * @return the value associated with the specified key, or null if the key does not exist.
@@ -33,6 +33,7 @@ public interface LiveMap {
3333
3434 /**
3535 * Retrieves all entries (key-value pairs) in the map.
36+ * Spec: RTLM11, RTLM11a
3637 *
3738 * @return an iterable collection of all entries in the map.
3839 */
@@ -42,6 +43,7 @@ public interface LiveMap {
4243
4344 /**
4445 * Retrieves all keys in the map.
46+ * Spec: RTLM12, RTLM12a
4547 *
4648 * @return an iterable collection of all keys in the map.
4749 */
@@ -51,6 +53,7 @@ public interface LiveMap {
5153
5254 /**
5355 * Retrieves all values in the map.
56+ * Spec: RTLM13, RTLM13a
5457 *
5558 * @return an iterable collection of all values in the map.
5659 */
@@ -85,6 +88,7 @@ public interface LiveMap {
8588
8689 /**
8790 * Retrieves the number of entries in the map.
91+ * Spec: RTLM10, RTLM10a
8892 *
8993 * @return the size of the map.
9094 */
@@ -104,7 +108,7 @@ public interface LiveMap {
104108 * @param callback the callback to handle the result or any errors.
105109 */
106110 @ NonBlocking
107- void setAsync (@ NotNull String keyName , @ NotNull Object value , @ NotNull Callback <Void > callback );
111+ void setAsync (@ NotNull String keyName , @ NotNull Object value , @ NotNull ObjectsCallback <Void > callback );
108112
109113 /**
110114 * Asynchronously removes the specified key and its associated value from the map.
@@ -117,5 +121,5 @@ public interface LiveMap {
117121 * @param callback the callback to handle the result or any errors.
118122 */
119123 @ NonBlocking
120- void removeAsync (@ NotNull String keyName , @ NotNull Callback <Void > callback );
124+ void removeAsync (@ NotNull String keyName , @ NotNull ObjectsCallback <Void > callback );
121125}
0 commit comments