@@ -19,6 +19,9 @@ public interface LiveObjects {
1919
2020 /**
2121 * Retrieves the root LiveMap object.
22+ * When called without a type variable, we return a default root type which is based on globally defined interface for Objects feature.
23+ * A user can provide an explicit type for the getRoot method to explicitly set the type structure on this particular channel.
24+ * This is useful when working with multiple channels with different underlying data structure.
2225 *
2326 * @return the root LiveMap instance.
2427 */
@@ -27,13 +30,19 @@ public interface LiveObjects {
2730
2831 /**
2932 * Initiates a batch operation and provides a BatchContext through a callback.
33+ * Provides access to the synchronous write API for Objects that can be used to batch multiple operations
34+ * together in a single channel message.
3035 *
3136 * @param batchContextCallback the builder to configure the batch operation.
3237 */
3338 void batch (@ NotNull BatchContextBuilder batchContextCallback );
3439
3540 /**
3641 * Creates a new LiveMap based on an existing LiveMap.
42+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
43+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
44+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
45+ * using the provided data and returns it.
3746 *
3847 * @param liveMap the existing LiveMap to base the new LiveMap on.
3948 * @return the newly created LiveMap instance.
@@ -43,6 +52,10 @@ public interface LiveObjects {
4352
4453 /**
4554 * Creates a new LiveMap based on a LiveCounter.
55+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
56+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
57+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
58+ * using the provided data and returns it.
4659 *
4760 * @param liveCounter the LiveCounter to base the new LiveMap on.
4861 * @return the newly created LiveMap instance.
@@ -52,6 +65,10 @@ public interface LiveObjects {
5265
5366 /**
5467 * Creates a new LiveMap based on a standard Java Map.
68+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
69+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
70+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
71+ * using the provided data and returns it.
5572 *
5673 * @param map the Java Map to base the new LiveMap on.
5774 * @return the newly created LiveMap instance.
@@ -61,6 +78,10 @@ public interface LiveObjects {
6178
6279 /**
6380 * Creates a new LiveCounter with an initial value.
81+ * Send a COUNTER_CREATE operation to the realtime system to create a new counter object in the pool.
82+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
83+ * the echoed COUNTER_CREATE operation, or if it wasn't received yet, the method creates a new object locally
84+ * using the provided data and returns it.
6485 *
6586 * @param initialValue the initial value of the LiveCounter.
6687 * @return the newly created LiveCounter instance.
@@ -70,13 +91,18 @@ public interface LiveObjects {
7091
7192 /**
7293 * Asynchronously retrieves the root LiveMap object.
94+ * When called without a type variable, we return a default root type which is based on globally defined interface for Objects feature.
95+ * A user can provide an explicit type for the getRoot method to explicitly set the type structure on this particular channel.
96+ * This is useful when working with multiple channels with different underlying data structure.
7397 *
7498 * @param callback the callback to handle the result or error.
7599 */
76100 void getRootAsync (@ NotNull Callback <@ NotNull LiveMap > callback );
77101
78102 /**
79103 * Initiates a batch operation asynchronously.
104+ * Provides access to the synchronous write API for Objects that can be used to batch multiple operations
105+ * together in a single channel message.
80106 *
81107 * @param batchContextCallback the builder to configure the batch operation.
82108 * @param callback the Callback to handle the completion or error of the batch operation.
@@ -85,6 +111,10 @@ public interface LiveObjects {
85111
86112 /**
87113 * Asynchronously creates a new LiveMap based on an existing LiveMap.
114+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
115+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
116+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
117+ * using the provided data and returns it.
88118 *
89119 * @param liveMap the existing LiveMap to base the new LiveMap on.
90120 * @param callback the callback to handle the result or error.
@@ -93,6 +123,10 @@ public interface LiveObjects {
93123
94124 /**
95125 * Asynchronously creates a new LiveMap based on a LiveCounter.
126+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
127+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
128+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
129+ * using the provided data and returns it.
96130 *
97131 * @param liveCounter the LiveCounter to base the new LiveMap on.
98132 * @param callback the callback to handle the result or error.
@@ -101,6 +135,10 @@ public interface LiveObjects {
101135
102136 /**
103137 * Asynchronously creates a new LiveMap based on a standard Java Map.
138+ * Send a MAP_CREATE operation to the realtime system to create a new map object in the pool.
139+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
140+ * the echoed MAP_CREATE operation, or if it wasn't received yet, the method creates a new object locally
141+ * using the provided data and returns it.
104142 *
105143 * @param map the Java Map to base the new LiveMap on.
106144 * @param callback the callback to handle the result or error.
@@ -109,6 +147,10 @@ public interface LiveObjects {
109147
110148 /**
111149 * Asynchronously creates a new LiveCounter with an initial value.
150+ * Send a COUNTER_CREATE operation to the realtime system to create a new counter object in the pool.
151+ * Once the ACK message is received, the method returns the object from the local pool if it got created due to
152+ * the echoed COUNTER_CREATE operation, or if it wasn't received yet, the method creates a new object locally
153+ * using the provided data and returns it.
112154 *
113155 * @param initialValue the initial value of the LiveCounter.
114156 * @param callback the callback to handle the result or error.
0 commit comments