Package 

Class DataHandle


  • 
    public class DataHandle
    
                        

    DataHandle handles the caching and reporting of user data (events and user property Settings). Its work relies on two inner classes, SendMessageWorker and SaveMessageWorker.

    • Method Detail

      • flush

         void flush(String token)

        Clear the queue for the current item and attempt to report it to the server. If the cache queue contains the data of the current token, the cache queue is reported after the cached data is imported to the database.

        Parameters:
        token - APP ID
      • flushOldData

         void flushOldData(String token)

        Invoke this interface with caution. Report the local cache data of the specified APP ID to the server only for compatibility with older versions

        Parameters:
        token - App ID
      • emptyMessageQueue

         void emptyMessageQueue(String token)

        Clear all queue data for a given token: data cache and data report.

        Parameters:
        token - App ID