Interface OnlineStatusDataSource

  • All Implemented Interfaces:

    
    public interface OnlineStatusDataSource
    
                        

    Online status subscription data source interface

    Since:

    5.32.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract List<String> onPriorityUserList() Returns a user list sorted by priority (lower position = lower priority).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onPriorityUserList

         abstract List<String> onPriorityUserList()

        Returns a user list sorted by priority (lower position = lower priority). Notes:

        1. When the total subscriptions exceed the limit, the first OnLineStatusManager#DEFAULT_SUBSCRIBE_NUMBER users are kept; users not in the list but already subscribed will be unsubscribed, and users in the list but not yet subscribed will be subscribed.

        2. To prevent a user ID from being evicted when the limit is exceeded, place it near the front of the list.

        3. The SDK caches the last returned data; call OnLineStatusManager#clearPriorityUserList to clear the cache.

        Returns:

        user ID list