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 (11/F, NO. B1 4.1 PHASE OF THE SOFTWARE INDUSTRY, SOFTWARE PARK EAST ROAD NO. 1, WUHANDONGHU DEVELOPMENT DISTRIC, WUHAN Hubei 0, 430000, CN)
CHEN, Shaojie (11/F, NO. B1 4.1 PHASE OF THE SOFTWARE INDUSTRY, SOFTWARE PARK EAST ROAD NO. 1, WUHANDONGHU DEVELOPMENT DISTRIC, WUHAN Hubei 0, 430000, CN)
ZHANG, Wenming (11/F, NO. B1 4.1 PHASE OF THE SOFTWARE INDUSTRY, SOFTWARE PARK EAST ROAD NO. 1, WUHANDONGHU DEVELOPMENT DISTRIC, WUHAN Hubei 0, 430000, CN)
Application Number:
CN2017/109572
Publication Date:
February 07, 2019
Filing Date:
November 06, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
WUHAN DOUYU NETWORK TECHNOLOGY CO., LTD. (11/F, NO. B1 4.1 PHASE OF THE SOFTWARE INDUSTRY, SOFTWARE PARK EAST ROAD NO. 1, WUHANDONGHU DEVELOPMENT DISTRIC, WUHAN Hubei 0, 430000, CN)
International Classes:
G06F9/44
Attorney, Agent or Firm:
CHOFN INTELLECTUAL PROPERTY (Room 1215-1218, Floor 12Left Bank Community No.68 Beisihuanxilu, Haidian District, Beijing 0, 100080, CN)
Download PDF: