Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MESSAGE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE AND COMPUTER READABLE STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2019/024305
Kind Code:
A1
Abstract:
A message processing method and apparatus, an electronic device and a computer readable storage medium. The method and apparatus are applied to an application program comprising a plurality of pieces of service logic. The method comprises: based on a determination condition set in an implementation class of a target service logic, determining, in an abstract class, whether the target service logic needs to perform asynchronous message processing, wherein the implementation class inherits the abstract class (S110); when the target service logic needs to perform asynchronous message processing, determining whether an asynchronous message processing class is instantiated in the abstract class, and if the asynchronous message processing class is not instantiated, instantiating the asynchronous message processing class (S120); and invoking an instantiation object of the asynchronous message processing class in the implementation class, so as to process a message of the target service logic (S130). Therefore, an asynchronous message processing class can only be instantiated in an abstract class, and asynchronous message processing can be realized by invoking an instantiation object of the asynchronous message processing class when various pieces of service logic in an application program need to perform asynchronous message processing, such that the memory overhead is greatly reduced and the development efficiency is improved.

Inventors:
ZHANG LEI (CN)
CHEN SHAOJIE (CN)
ZHANG WENMING (CN)
Application Number:
PCT/CN2017/109572
Publication Date:
February 07, 2019
Filing Date:
November 06, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
WUHAN DOUYU NETWORK TECH CO LTD (CN)
International Classes:
G06F9/44
Foreign References:
CN105468407A2016-04-06
CN102455933A2012-05-16
US20120222022A12012-08-30
US6012081A2000-01-04
Other References:
SMILYYY, ANDROID ASYNCTASK, 25 July 2016 (2016-07-25), Retrieved from the Internet
Attorney, Agent or Firm:
CHOFN INTELLECTUAL PROPERTY (CN)
Download PDF: