Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message processing method, device and electronic device

A message processing and message technology, applied in the field of communication, can solve the problems of reducing development efficiency, wasting development cost, and repeated development, and achieve the effect of improving development efficiency and reducing memory overhead

Active Publication Date: 2018-07-06
WUHAN DOUYU NETWORK TECH CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing practice is to instantiate the asynchronous message processing class in the layer where asynchronous message processing is required in the application program, which leads to the instantiation of asynchronous message processing objects in multiple layers in the application program, which will cause memory overhead increase
At the same time, instantiating asynchronous message processing objects in multiple levels will lead to the problem of repeated development, which not only reduces development efficiency, but also wastes development costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message processing method, device and electronic device
  • Message processing method, device and electronic device
  • Message processing method, device and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0049] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0050] It should be noted that like numeral...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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.

Description

technical field [0001] The present invention relates to the technical field of communications, and in particular, to a message processing method, device and electronic equipment. Background technique [0002] An application usually needs to implement multiple business logics, and the program code for independently completing one business logic belongs to one level. Sometimes various levels of program code may need to perform time-consuming operations, and the application's user interface needs to be updated when the operation is completed. For this type of operation, the existing method is to create a separate sub-thread for execution, so as not to cause blocking of the user interface. The update of the user interface needs to be performed in the main thread of the application program, which requires the sub-thread to deliver the result of the operation execution to the main thread, so that the user interface can be updated. [0003] Currently, an asynchronous message proc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/448
CPCG06F9/4488
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products