55import org .jetbrains .annotations .NotNull ;
66
77/**
8- * The LiveObjectsPlugin interface provides a mechanism for managing and interacting with
8+ * The ObjectsPlugin interface provides a mechanism for managing and interacting with
99 * live data objects in a real-time environment. It allows for the retrieval, disposal, and
10- * management of LiveObjects instances associated with specific channel names.
10+ * management of Objects instances associated with specific channel names.
1111 */
12- public interface LiveObjectsPlugin {
12+ public interface ObjectsPlugin {
1313
1414 /**
15- * Retrieves an instance of LiveObjects associated with the specified channel name.
16- * This method ensures that a LiveObjects instance is available for the given channel,
15+ * Retrieves an instance of RealtimeObjects associated with the specified channel name.
16+ * This method ensures that a RealtimeObjects instance is available for the given channel,
1717 * creating one if it does not already exist.
1818 *
19- * @param channelName the name of the channel for which the LiveObjects instance is to be retrieved.
20- * @return the LiveObjects instance associated with the specified channel name.
19+ * @param channelName the name of the channel for which the RealtimeObjects instance is to be retrieved.
20+ * @return the RealtimeObjects instance associated with the specified channel name.
2121 */
2222 @ NotNull
23- LiveObjects getInstance (@ NotNull String channelName );
23+ RealtimeObjects getInstance (@ NotNull String channelName );
2424
2525 /**
2626 * Handles a protocol message.
@@ -34,7 +34,7 @@ public interface LiveObjectsPlugin {
3434 /**
3535 * Handles state changes for a specific channel.
3636 * This method is invoked whenever a channel's state changes, allowing the implementation
37- * to update the LiveObjects instances accordingly based on the new state and presence of objects.
37+ * to update the RealtimeObjects instances accordingly based on the new state and presence of objects.
3838 *
3939 * @param channelName the name of the channel whose state has changed.
4040 * @param state the new state of the channel.
@@ -43,12 +43,12 @@ public interface LiveObjectsPlugin {
4343 void handleStateChange (@ NotNull String channelName , @ NotNull ChannelState state , boolean hasObjects );
4444
4545 /**
46- * Disposes of the LiveObjects instance associated with the specified channel name.
47- * This method removes the LiveObjects instance for the given channel, releasing any
46+ * Disposes of the RealtimeObjects instance associated with the specified channel name.
47+ * This method removes the RealtimeObjects instance for the given channel, releasing any
4848 * resources associated with it.
4949 * This is invoked when ablyRealtimeClient.channels.release(channelName) is called
5050 *
51- * @param channelName the name of the channel whose LiveObjects instance is to be removed.
51+ * @param channelName the name of the channel whose RealtimeObjects instance is to be removed.
5252 */
5353 void dispose (@ NotNull String channelName );
5454
0 commit comments