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

Message processing method and apparatus, and electronic device

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

Active Publication Date: 2017-12-12
WUHAN DOUYU NETWORK TECH CO LTD
View PDF12 Cites 5 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 and apparatus, and electronic device
  • Message processing method and apparatus, and electronic device
  • Message processing method and apparatus, 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

The invention provides a message processing method and apparatus, and an electronic device. The method and the apparatus are applied to an application comprising multiple business logics. The method comprises the steps of judging whether target business logic needs to perform asynchronous message processing or not in an abstract class based on a judgment condition set in an implementation class of the target business logic, wherein the implementation class inherits the abstract class; when the target business logic needs to perform the asynchronous message processing, judging whether an asynchronous message processing class is instantiated in the abstract class or not, and if the asynchronous message processing class is not instantiated, instantiating the asynchronous message processing class; and calling an instantiation object of the asynchronous message processing class in the implementation class to process a message of the target business logic. Therefore, the asynchronous message processing class can be instantiated in the abstract class only; and when the business logic in the application needs to perform the asynchronous message processing, the asynchronous message processing can be realized by calling the instantiation object of the asynchronous message processing class, so 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 Applications(China)
IPC IPC(8): G06F9/44
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