CN108965587A - A kind of message prompt method, device and equipment - Google Patents

A kind of message prompt method, device and equipment Download PDF

Info

Publication number
CN108965587A
CN108965587A CN201810673130.XA CN201810673130A CN108965587A CN 108965587 A CN108965587 A CN 108965587A CN 201810673130 A CN201810673130 A CN 201810673130A CN 108965587 A CN108965587 A CN 108965587A
Authority
CN
China
Prior art keywords
message
type
queue
prompting
different
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810673130.XA
Other languages
Chinese (zh)
Inventor
柳伟
彭志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN201810673130.XA priority Critical patent/CN108965587A/en
Publication of CN108965587A publication Critical patent/CN108965587A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of method of prompting message, terminal device receives the message that server is sent, and the received message of institute is stored in first-level message buffer queue;Type of message belonging to the message that terminal device judgement is stored in first-level message buffer queue, and according to the type of message of message, message is moved in message queue corresponding with the type of message from level cache queue, wherein different message queues is used to cache the message of different messages type;In turn, terminal device concurrently carries out prompting message to the message in different message queues.The message prompt method reduces the storage and processing pressure of first-level message buffer queue;Meanwhile the working efficiency of terminal device is improved by the way of parallel processing, reduce the waiting time of user.In addition, this method distinguishes message alerting pattern from the dimension of type of message, the message of different messages type is distinguished convenient for user.

Description

A kind of message prompt method, device and equipment
Technical field
This application involves technical field of software development more particularly to a kind of message prompt methods, device and equipment.
Background technique
With the continuous development of software development technique, there are various types of softwares at the terminal, for example, social software, Instant message applications, transaction software, payment software etc., these softwares have corresponding message and mention when receiving message It wakes up.
Existing prompting message mechanism is specifically serially to handle all new informations when receiving new information, successively show Show these new informations, this mode is under the scene that high-volume message pushes, and the Message Processing efficiency of client is lower, user etc. It is longer to the time, user experience is influenced, also, new information successively replaces the mode of display, relatively attached most importance to so that user is easy to miss The message wanted can be to use especially when real-time and the higher message of safety are not found by user in time and led to miss It causes centainly to lose in family.
Existing prompting message mechanism can not provide timely and effectively prompting message service also for user, can do nothing to help user Quickly know valuable new information.
Summary of the invention
The embodiment of the present application provides a kind of message prompt method, and this method passes through difference by classifying to message Message queue L2 cache is carried out to the message of different messages type, realized based on different message queues to the parallel of message It reminds, so that user is by parallel prompting message mode, rapidly and accurately obtains the message of certain message types.
In addition, the embodiment of the present application also provides corresponding in order to guarantee the application and realization of the above method in practice Device and terminal device.
In view of this, the application first aspect provides a kind of message prompt method, which comprises
The message that server is sent is received, the message is stored in first-level message buffer queue;
The type of message for judging the message in the first-level message buffer queue, from the first-level message buffer queue It is middle to remove the message, the message is stored in by message corresponding with the type of message according to the type of message of the message Queue;Different message queues is used to cache the message of different messages type;
To the message in different message queues, prompting message is concurrently carried out.
Optionally, before the message that the reception server is sent, the method also includes:
Message subject state table is obtained, the message subject state table is for recording message subject;
The message of the message subject is subscribed to the server according to the message subject state table;
The then message for receiving server and sending, comprising:
Receive the subscription message of the server push.
Optionally, the method also includes:
Message subject state table is obtained, the message subject state table is for recording message subject;
Sort out relation table, determination and the message subject state table phase according to the message subject state table and message subject The type of message of the message subject of pass, the message subject sort out relation table for characterizing between message subject and type of message Corresponding relationship;
Different message queues is established according to the type of message of message subject relevant to the message subject state table, one A message queue is used to store the message of at least one type of message.
Optionally, the message in different message queues, concurrently carries out prompting message, comprising:
To the message in different message queues, message is concurrently carried out according to the corresponding prompting message mode of type of message It reminds;Wherein, a kind of type of message corresponds to a kind of prompting message mode.
Optionally, the different message queue includes: first message queue and second message queue;
Wherein, the first message queue is described to belong to disappearing for action type for storing the message for belonging to action type Breath refers to the message comprising operation instruction information;
Wherein, the second message queue is described to belong to disappearing for type of error for storing the message for belonging to type of error Breath refer to be abnormal comprising system or user's operation fault wrong details message.
Optionally, the message in different message queues, concurrently carries out prompting message, comprising:
Using Concurrent Display mode, shown according to the prompting message mode using horse race lamp corresponding with action type described Message in first message queue, and, it is shown according to corresponding with type of error using the prompting message mode of message box Message in the second message queue.
Optionally, the method also includes:
According to the type of message of the message, the corresponding memory mechanism of the message is determined;
The message in the message queue is stored according to the message corresponding memory mechanism.
Optionally, the method is realized using multithreading, comprising:
First thread is created, the message that server is sent is received by the first thread, the message is stored in one Grade message buffer queue;
The second thread is created, disappearing for the message in the first-level message buffer queue is judged by second thread Type is ceased, the message is removed from the first-level message buffer queue, and disappear described according to the type of message of the message Breath is stored in message queue corresponding with the type of message;
Different threads is created for different message queues, by the different thread in different message queues Message, concurrently carry out prompting message.
Optionally, the method also includes:
In response to being directed to the jump instruction of the message, jump to and business interface belonging to the message.
The application second aspect provides a kind of device of prompting message, and described device includes:
The message is stored in one for receiving the message of server transmission by message sink and level cache module Grade message buffer queue;
Judgement and message classifying module, for judging the message class of the message in the first-level message buffer queue Type removes the message from the first-level message buffer queue, and is deposited the message according to the type of message of the message It is stored in message queue corresponding with the type of message;Different message queues is used to cache the message of different messages type; A kind of type of message corresponds to a kind of prompting message mode;
Prompting message module carries out message for the corresponding prompting message mode of type of message according to the message and mentions It wakes up.
Optionally, described device further include:
Message subject state table obtains module, and for obtaining message subject state table, the message subject state table is used for Record message subject;
Message subscribing module, for subscribing to the message subject to the server according to the message subject state table Message;
Then message sink and level cache module are specifically used for:
Receive the subscription message of the server push.
Optionally, described device further include:
Message subject state table obtains module, and for obtaining message subject state table, the message subject state table is used for Record message subject;
Type of message determining module is determined for sorting out relation table according to the message subject state table and message subject The type of message of message subject relevant to the message subject state table, the message subject sort out relation table and disappear for characterizing Cease the corresponding relationship between theme and type of message;
Message queue establishes module, for the type of message according to message subject relevant to the message subject state table Different message queues is established, a message queue is used to store the message of at least one type of message.
Optionally, prompting message module is specifically used for:
To the message in different message queues, message is concurrently carried out according to the corresponding prompting message mode of type of message It reminds;Wherein, a kind of type of message corresponds to a kind of prompting message mode.
Optionally, the different message queue includes: first message queue and second message queue;
Wherein, the first message queue is described to belong to disappearing for action type for storing the message for belonging to action type Breath refers to the message comprising operation instruction information;
Wherein, the second message queue is described to belong to disappearing for type of error for storing the message for belonging to type of error Breath refer to be abnormal comprising system or user's operation fault wrong details message.
Optionally, prompting message module is specifically used for:
Using Concurrent Display mode, shown according to the prompting message mode using horse race lamp corresponding with action type described Message in first message queue, and, it is shown according to corresponding with type of error using the prompting message mode of message box Message in the second message queue.
Optionally, described device further include:
Memory mechanism determining module determines the corresponding storage machine of the message for the type of message according to the message System;
Message storage module, for being carried out according to the corresponding memory mechanism of the message to the message in the message queue Storage.
Optionally, when realizing message prompt method using multithreading, described device includes:
First thread creation module receives disappearing for server transmission by the first thread for creating first thread Breath, is stored in first-level message buffer queue for the message;
Second thread creation module, described in being judged in the first-level message buffer queue by second thread The type of message of message removes the message from the first-level message buffer queue, and according to the type of message of the message The message is stored in message queue corresponding with the type of message;
Multithreading creation module passes through the different line for creating different threads for different message queues Journey concurrently carries out prompting message to the message in different message queues.
Optionally, described device further include:
Page jump module, in response to be directed to the message jump instruction, jump to belonging to the message Business interface.
The application third aspect provides a kind of terminal device, and the equipment includes processor and memory:
Said program code is transferred to the processor for storing program code by the memory;
The processor is used to execute the message as described in above-mentioned first aspect according to the instruction in said program code and mention The step of method of waking up.
The application fourth aspect provides a kind of computer readable storage medium, and the computer readable storage medium is for depositing Program code is stored up, said program code is for executing message prompt method described in above-mentioned first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
A kind of message prompt method is provided in the embodiment of the present application, terminal device receives the message that server is sent, and The received message of institute is stored in first-level message buffer queue;Terminal device judgement is stored in first-level message buffer queue Type of message belonging to message, and according to the type of message of message, message is moved to and the message class from level cache queue In the corresponding message queue of type, wherein different message queues is used to cache the message of different messages type;In turn, terminal is set For to the message in different message queues, prompting message is concurrently carried out.In above-mentioned message prompt method, terminal device according to The received message of institute is stored the parallel processing into corresponding message queue, no longer only to first-level message by the difference of type of message All message in buffer queue carry out serial process, reduce the storage and processing pressure of first-level message buffer queue;Meanwhile Message in message queue corresponding with each type of message is handled parallel, has also correspondingly improved the work of terminal device Efficiency reduces the waiting time of user, improves the usage experience of user.In addition, using concurrently processing mode to difference Message in message queue carries out prompting message, distinguishes from the dimension of type of message to message alerting pattern, so that user Type of message that can be different according to the different instructions of alerting pattern, pays attention to more important message in time convenient for user, prevents Unnecessary loss is generated because missing important messages.
Detailed description of the invention
Fig. 1 is prompting message system architecture schematic diagram in the embodiment of the present application;
Fig. 2 is the flow diagram of message prompt method in the embodiment of the present application;
Fig. 3 is the configuration diagram of message prompt method in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of prompting message device in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of terminal device in the embodiment of the present invention.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
In existing prompting message mechanism, terminal device generally use the mode of serial process to received message at Reason and display, specifically, after terminal device receives the message of server transmission, the successively received message of serial process institute, and Successively replacement shows the received message of institute in the form of message bullet frame, carries out prompting message to user to realize.
In existing prompting message mechanism, since terminal device needs that successively the received message of institute is handled and shown Show operation, therefore, in the case where server pushes the scene of high-volume message to terminal device, terminal device serial process institute is received Message needs to take a substantial amount of time, and terminal device working efficiency is lower, and then user is caused to need to wait longer time It can check the message of server push, user experience is poor.In addition, above-mentioned prompting message mechanism in the form of message bullet frame to Family carries out prompting message, and when needing new information large batch of to user reminding, new information is successively handed in the form of message bullet frame For display, user easily misses the important information wherein shown, if the message that user is missed is certain real-times and safety The higher message of property, may cause certain loss to user.
In addition, in some existing prompting message mechanism, can also by the way of showing new information quantity to user into Row prompting message passes through to change and shows in corresponding software specifically, after terminal device receives the new information of server transmission New information quantity carries out prompting message to user.Using this prompting message mechanism, user can not receive the same of new information When know the content of the message at once, generally require by clicking software corresponding with the message, then click received newly disappear Breath could obtain the content of the message, and complicated operation, and user experience is poor.
In order to solve above-mentioned problems of the prior art, a kind of message prompt method provided by the present application is used The method of parallel processing handles the received message of institute, and it is possible to which the type of message according to belonging to message correspondingly disappears Breath is reminded.The message prompt method is applied to terminal device, and terminal device is the smart machine with user oriented interactive function, For example, computer, smart phone, personal digital assistant (Personal Digital Assitant, PDA), tablet computer etc..
The core technology thinking of message prompt method provided by the present application is introduced below:
Terminal device receives the message that server is sent, and the received message of institute is stored in first-level message buffer queue In;Type of message belonging to the message that terminal device judgement is stored in first-level message buffer queue, and according to the message of message Message is moved in message queue corresponding with the type of message, wherein different message teams by type from level cache queue Arrange the message for caching different messages type;In turn, terminal device concurrently carries out the message in different message queues Prompting message.
In message prompt method provided by the present application, terminal device is according to the difference of type of message, by the received message of institute The parallel processing into corresponding message queue is stored, no longer only all message in first-level message buffer queue are serially located Reason, reduces the storage and processing pressure of first-level message buffer queue;Meanwhile in message queue corresponding with each type of message Message handled parallel, also correspondingly improved the working efficiency of terminal device, reduced the waiting time of user, improve The usage experience of user.In addition, prompting message is carried out to the message in different messages queue using concurrently processing mode, from The dimension of type of message distinguishes message alerting pattern, allows user different according to the different instructions of alerting pattern Type of message pays attention to more important message convenient for user in time, prevents from generating unnecessary loss because missing important messages.
It should be understood that message prompt method provided by the present application is applied in prompting message system, it is this Shen referring to Fig. 1, Fig. 1 Please embodiment provide prompting message system configuration diagram.As shown in Figure 1, including terminal device 101 and service in Fig. 1 Device 102.Wherein, terminal device 101 is the smart machine with user oriented interactive function;Server 102 can be independently to set It is standby, cluster server can also be used, server 102 can provide data support simultaneously for multiple terminal devices 101.Specifically , message prompt method provided by the present application can be in the form of application APP, APP functional module or browser plug-in etc. Client application in terminal device 101, by the message prompt method when user uses client can for user and When prompting message is effectively performed.
Server 102 sends message to correspondingly terminal device 101 according to the subscription information of terminal device 101.Terminal is set After standby 101 receive the message that server 102 is sent, the received message of institute is stored into first-level message buffer queue, and is judged The type of message of message in first-level message buffer queue correspondingly delays message from first-level message according to the difference of type of message It deposits in queue and removes, and store to message queue corresponding with the type of message of the message, wherein different message queues are used for Cache the message of different messages type.For the message in different messages queue, terminal device 101 concurrently carries out message and mentions It wakes up.
It should be noted that above-mentioned system shown in Figure 1 is only a kind of example, it is in practical applications, provided by the present application to disappear Breath based reminding method also can be applied to other systems.
Message prompt method provided by the present application is introduced below by embodiment.
Referring to fig. 2, Fig. 2 is a kind of flow diagram of message prompt method provided by the embodiments of the present application.For the ease of Description, following embodiments are described using terminal device as executing subject.As shown in Fig. 2, the message prompt method include with Lower step:
Step 201: receiving the message that server is sent, which is stored in first-level message buffer queue.
Terminal device receives the message from server, and the received message of institute is stored in first-level message buffer queue In, which is used for before carrying out classification processing to message, directly message of the caching from server.
In specific implementation, terminal device can provide related subscription by way of subscribing to push to server for user Service.Specifically, user can utilize the information such as account information such as username and password, registration terminal equipment on the terminal device The software client of upper configuration, in turn, server can determine the account according to the account information currently logged on terminal device Possessed permission, and the message subject state table that can be obtained to terminal device push account permission, the message subject shape The message subject that the record account can subscribe in state table.
Based on this, before receiving the message that server is sent, terminal device needs first to obtain message subject state table, obtains After getting the message subject state table of server push, i.e., accordingly based upon the message subject state table, disappear to server subscription Cease the message of message subject recorded in theme state table.Correspondingly, when server sends message to terminal device, Ji Kegen According to the message for the message subject that the subscription situation of user is subscribed to terminal device push user.
It should be noted that generally including two class message subjects in message subject state table, one kind is and business datum phase The message subject of pass, another kind of is message subject relevant to basic data, such as type of error, action type and type of reminders Message.Terminal device is different with mode of quitting the subscription of for the subscription of the message of these two types of message subjects, disappears separately below to these two types It ceases the subscription of the message of theme and quits the subscription of mode and be introduced:
It, can be related to business according to user couple when terminal device subscribes to the message of message subject relevant to business datum Menu opening situation, dynamically subscribe to the message of relevant to business message subject to server, i.e., user's unlatching from When belonging to the menu of certain business, terminal device is dynamically to subscribe to disappearing for message subject relevant to the business to server Breath correspondingly when quitting the subscription of the message of message subject relevant to the business, is directly closed corresponding service menu and be can be realized and disappear Breath is quit the subscription of;It, can be according to the register of user when terminal device subscribes to the message of message subject relevant to basic data This generic operation is correspondingly subscribed to, i.e., when user passes through the client of terminal device logs corresponding software, terminal device is i.e. to service Device subscribes to the message of such message subject automatically, and correspondingly, user's software client of logging off can quit the subscription of such message master The message of topic.
Certainly, terminal device can also obtain message from server by other means, not obtain herein to terminal device The form of message is taken to do any restriction.
Step 202: judging the type of message of the message in first-level message buffer queue, moved from first-level message buffer queue Message is stored in message queue corresponding with type of message according to the type of message of message by outbound message;Different message queues For caching the message of different messages type.
Terminal device caches the message that server is sent to first-level message buffer queue, caches team to the first-level message Type of message belonging to message in column judged, according to the type of message of message, by message from first-level message buffer queue Middle removal, and be stored in message queue corresponding with the type of message, wherein different message queues disappears for caching difference Cease the message of type.That is, type of message of the terminal device according to message in first-level message buffer queue, further by first-level message In the message transfers stored in buffer queue to message queue corresponding with the type of message of each message, by disappearing from server Breath carries out classification and secondary storage according to type of message, also, different message queues can be used for storing different messages type Message in, to carry out corresponding post-treatment operations for different message queue.
It should be noted that elder generation can be taken when judging the type of message of message in first-level message buffer queue Into the principle first gone out, i.e., first judge type of message belonging to the relatively early message being stored in first-level message buffer queue, it is rear to judge Later storage and type of message belonging to the message in first-level message buffer queue.
When establishing message queue, the available message subject state table of terminal device, the message subject state table is for remembering Record message subject.And then relation table is sorted out according to message subject state table and message subject, it is determining in message subject state table The relevant type of message of message subject, wherein message subject sort out relation table can characterize message subject and type of message it Between corresponding relationship.In turn, different message queues is established according to the type of message to relevant message subject state table, one Message queue is used to store the message of at least one type of message.
Specifically, the available message subject state table that message subject is subscribed to for recording user of terminal device, it can also To obtain the message subject state table for recording message subject provided by system.Terminal device is sorted out according to message subject to close It is the corresponding relationship in table between message subject and type of message, the message subject in message subject state table is divided to correspondence Type of message, determine the type of message of relevant to message subject state table message subject.Basis and message subject in turn The type of message of the relevant message subject of state table, establishes different message queues, guarantees that a message queue at least stores one The message of kind type of message.
In one possible implementation, the different message queues that terminal device is established include: first message team Column and second message queue:
Wherein, first message queue is used to store the message for belonging to action type, what which referred to It is the message comprising operational order, for example, the message comprising operational orders such as workflow examination and approval operational order, transactional operation instructions, User can correspondingly jump to the operation interface of business relevant to the message by clicking the message of the action type, into And user can correspondingly operate in the operation interface.Certainly, which can be also used for storage and behaviour Make the message of other similar type of messages of type, or other similar in the message importance degree with action type for storing The message of type of message, for example, the message of the type of reminders of user's important information information, the message of the type of reminders can be reminded It is specifically as follows expire message, repurchase of bond of holding position to expire message, acceptance reminder message etc., herein not to first message queue energy The message enough stored does any restriction.
Wherein, second message queue is used to store the message for belonging to type of error, what which referred to It is the message for including the wrong details that system is abnormal or user's operation is made mistakes, user is by checking type of error Message can correspondingly understand the detailed error information about system exception, or understand about the detailed of itself operation error Error message.Certainly, which can be also used for storing the message of other type of messages similar with type of error, Or for storing the message with other type of messages similar in the message importance degree of type of error, for example, new comprising information News, new stock apply to purchase the general category message of the related services information such as information, the message that can not stored to second message queue herein Do any restriction.
For further satisfaction user demand, terminal device can also establish third message queue, belong to for storage slow The message of type is deposited, which specifically may include data relevant to client update.That is, Terminal device can establish any number of message queue according to user demand, the message that do not established herein to terminal device The quantity of queue does any restriction.
Step 203: to the message in different message queues, concurrently carrying out prompting message.
For the message being stored in different message queues, terminal device concurrently carries out prompting message, i.e. terminal is set When the standby message in a certain message queue carries out prompting message, it will not influence and disappear to the message in other message queues Breath is reminded, and can carry out prompting message to the message in different messages queue simultaneously.
It should be noted that distinguishing the message of different messages queue for the ease of user, terminal device can be for difference Message queue different prompting message modes is respectively set, using corresponding prompting message mode to disappearing in each message queue Breath carries out prompting message.In this way, can be according to the significance level of type of message, by the message of type of message similar in significance level It is stored in same message queue, and different prompting message modes, and then terminal is set for the message in each message queue When equipment carries out prompting message, user can know the important journey of currently received message according to the difference of prompting message mode Degree.
In addition, corresponding prompting message mode, a kind of message class can be arranged for different type of messages in terminal device Type corresponds to a kind of prompting message mode, and for the message in different messages queue, terminal device can be corresponding according to type of message Prompting message mode concurrently carry out prompting message.When specific implementation, in the available different messages queue of terminal device Message determines prompting message mode corresponding with the type of message according to type of message belonging to the message of acquisition, and then uses This prompting message mode carries out prompting message.
In this way, user can correspondingly determine type of message belonging to the message according to different prompting message modes, And then select how to handle the message, for example, user knows that currently received message is action type according to prompting message mode Message, and then select to check the message of the action type immediately, and execute corresponding operation;In another example user is according to message Alerting pattern knows that currently received message is the message of general type, and user, which can choose, temporarily ignores the message, not to this The message of general type is checked.
It should be noted that above-mentioned prompting message mode can be customized by the user setting, can also be write from memory by terminal device Recognize setting.Now following three kinds of illustrative specific implementations are provided for above-mentioned prompting message mode:
The first implementation, terminal device can be directed to from different messages queue or belong to disappearing for different messages type Breath, is arranged different message alert tones, using different message alert tones to from different messages queue or belonging to different messages The message of type carries out prompting message.For example, terminal device can be for the message setting from first message queue using the One the tinkle of bells carries out prompting message, carries out prompting message using the second the tinkle of bells for the message setting in second message queue.
Second of implementation, terminal device can be directed to from different message queues or belong to different messages type Different message displaying methods is arranged in message, using different message displaying methods to from different messages queue or belonging to not Message with type of message carries out prompting message.For example, terminal device can be for the message setting for belonging to first message type Prompting message is carried out using the message displaying method of pop-up, when terminal device receives the message for belonging to first message type, Automatically the message is popped up on the screen, prompting message is realized with this, terminal device, which can be directed to, belongs to disappearing for second message type Breath setting carries out prompting message using the display mode of message box, belongs to disappearing for second message type when terminal device receives When breath, change the new information quantity shown on the message notifying frame of corresponding software, but be not particularly shown new message content, with this reality Existing prompting message.
The third implementation, terminal device can be directed to from different message queues or belong to different messages type Different warning light display modes is arranged in message, using different warning light display modes to from different messages queue or category Prompting message is carried out in the message of different messages type.For example, terminal device can be directed to the message from first message queue It is arranged and prompting message is carried out using the display mode that warning light is always on, is arranged for the message in second message queue and uses The display mode that warning light constantly flashes carries out prompting message;In another example terminal device, which can be directed to, belongs to first message type Message setting prompting message is carried out using the warning light of green, be arranged for the message for belonging to second message type using red Warning light carry out prompting message.
It is, of course, also possible to be directed to from different message queues or belong to the message of different messages type, other shapes are set The prompting message mode of formula can also be directed to from different messages queue or belong to the message of different messages type, comprehensive to use Above-mentioned first into the third implementation any one or more prompting message mode carry out prompting message, herein not to message The concrete form of alerting pattern does any restriction.
For what is referred in step 202 above, terminal device establishes the reality of first message queue and second message queue Existing mode, terminal device further concurrently can carry out message for the message in first message queue and second message queue It reminds.
Specifically, terminal device can preset use when storing the message of action type in first message queue The prompting message mode of horse race lamp shows the message of the action type, specifically, the prompting message mode of horse race lamp is in terminal The display format of message is rolled on the screen of equipment repeatedly.In this way, terminal device judges type of message belonging to message for operation When type, that is, the prompting message mode that horse race lamp can be used shows message.
Certainly, terminal device can also be preset is shown in first message queue using the prompting message mode of horse race lamp The message of storage, in this way, when also storage and other message classes similar in action type message importance degree in first message queue When the message of type, prompting message can also be carried out by the way of the horse race lamp for the message of other type of messages, with prompt The message that user currently shows is more important, prevents user from missing important message.
When storing the message of type of error in second message queue, terminal device can be preset using message box Prompting message mode show the message of the type of error, specifically, the prompting message mode of message box is update message box The new information quantity shown on son, but the particular content of message is not shown, or only show last updated message Partial content.In this way, disappearing for message box can be used when terminal device judges type of message belonging to message for type of error It ceases alerting pattern and shows message, when user needs to check the particular content of the message of the type of error, user, which can put to open, to disappear Box is ceased, the particular content of the message of type of error in message box is obtained.
Certainly, terminal device, which can also be preset, shows second message queue using the prompting message mode of message box The message of middle storage, in this way, when also storage and other message similar in type of error message importance degree in second message queue When the message of type, for the message of other type of messages, terminal device can also be disappeared by the way of the message box Breath is reminded, lower with the message importance degree for prompting user currently to show, without checking immediately.
In addition, terminal device can preparatory needle if terminal device establishes third message queue for the message of caching type The message of the caching type is directed to without disappearing to the prompting message mode of the message setting other forms of caching type, or setting Breath is reminded.Certainly, terminal device can also in advance for all message setting stored in third message queue it is corresponding other The prompting message mode of form, or setting are directed to the message stored in the third message queue without reminding.
It should be noted that message prompt method provided in this embodiment, it can also be further according to the message class of message Type stores the message in each message queue.
Specifically, can corresponding memory mechanism be arranged for each type of message in advance in terminal device, in this way, terminal device By message after being moved to each message queue in first-level message buffer queue, can further it disappear to message in each message queue Breath type is judged, according to the type of message of message, determines corresponding memory mechanism;And then it is deposited according to message is corresponding Storage mechanism stores the message in each message queue.
For example, higher for significance level, and the message of the stronger type of message of real-time, as action type message, The message etc. of type of reminders, terminal device can be arranged in preset time for the message of these types in advance effectively stores machine System, effective memory mechanism such as in one day, in this way, if terminal device obtains from message queue and judges that certain message belongs to operation When type or type of reminders, effective memory mechanism in preset time is correspondingly taken to store the message, user is in preset time Even if interior repeatedly restart software client, which can load and show, the message, that is, automatic archiving is not after preset time It shows again.
In another example it is lower for significance level, and need to guarantee the message of permanently effective type of message, such as type of error Message, the message of general type etc., terminal device can be permanent effective for the message setting of these type of messages in advance Memory mechanism, if terminal device obtains from message queue and judges that certain message belongs to type of error or general type, accordingly The message is permanently stored in the file of software client by ground, is written in database table corresponding with the client account, When user needs to obtain the message, it can be inquired from the history message page and obtain the message.
It such as include that basis is data cached since the message of part caching type also has the characteristics that need long-term preservation Can also permanent effective memory mechanism be arranged for this kind of message in advance in basic buffered message, therefore, terminal device.
For another example for can repeated multiple times acquisition type of message message, it is as slow in cached the dynamic in message Message is deposited, terminal device can be stored in the memory mechanism of memory for the message setting of these types in advance, if terminal device It is obtained from message queue and judges that certain message belongs to dynamic buffering message, be then correspondingly stored in memory the message, User exits software client and exits, when terminal device closing, and terminal device will abandon the message automatically, and user is again After logging in the software client, terminal device can obtain the message again from server.
It should be noted that type of message of the terminal device in addition to that can be directed to message, is arranged corresponding with each type of message Memory mechanism outside, corresponding with each message queue storage can also be arranged directly against different message queues in terminal device Mechanism, in turn, terminal device, can the direct message teams according to belonging to the message after getting message in each message queue Column, determine corresponding memory mechanism, and store to message using corresponding memory mechanism.
In message prompt method provided by the present application, terminal device is according to the difference of type of message, by the received message of institute The parallel processing into corresponding message queue is stored, no longer only all message in first-level message buffer queue are serially located Reason, reduces the storage and processing pressure of first-level message buffer queue;Meanwhile in message queue corresponding with each type of message Message handled parallel, also correspondingly improved the working efficiency of terminal device, reduced the waiting time of user, improve The usage experience of user.In addition, prompting message is carried out to the message in different messages queue using concurrently processing mode, from The dimension of type of message distinguishes message alerting pattern, allows user different according to the different instructions of alerting pattern Type of message pays attention to more important message convenient for user in time, prevents from generating unnecessary loss because missing important messages.
In order to guarantee that terminal device can execute message prompt method described above glibly, the prompting message is being executed Caton does not occur during method, provides preferable user experience for user, generally realizes that above-mentioned message mentions using multithreading Awake method.Below with reference to Fig. 3, realize that the specific implementation of above-mentioned message prompt method is introduced to using multithreading:
As shown in figure 3, terminal device creates first thread 301, disappearing for server transmission is received by the first thread 301 Breath, and message is stored in first-level message buffer queue.
Terminal device creates the second thread 302, judges message in first-level message buffer queue by second thread 302 Type of message removes message from the first-level message buffer queue, and the message is stored and is somebody's turn to do according to the type of message of message In the corresponding message queue of type of message.
As shown in figure 3, terminal device pre-establishes first message queue, second message queue and third message queue, In, first message queue is for storing the message of action type and the message of type of reminders, and second message queue is for storing mistake The accidentally message of the message of type and general type, third message queue are used for the message of memory buffers type.
Terminal device judges the type of message of message in level cache queue, if message belongs to behaviour by the second thread 302 Make type or type of reminders, then correspondingly remove the message from first-level message buffer queue, and stores to first message team In column;If message belongs to type of error or general type, correspondingly the message is removed from first-level message buffer queue, and It stores into second message queue;If message belongs to caching type, correspondingly by the message from first-level message buffer queue It removes, and stores into third message queue.
Certainly, terminal device also can establish the message queue of other quantity, and each message queue is arranged for storing it The message of his type of message, the quantity for the message queue that do not established herein to terminal device and each message queue can Type of message belonging to the message of storage does any restriction.
Terminal device creates different threads for different message queues, by different threads to different message teams Message in column concurrently carries out prompting message.
As shown in figure 3, terminal device is directed to first message queue, second message queue and the creation of third message queue respectively Third thread 303, the 4th thread 304 and the 5th thread 305, wherein third thread 303 is used for in first message queue Message concurrently uses the alerting pattern of horse race lamp to carry out prompting message, i.e., scrolls first on the screen of terminal device and disappear Cease the message in queue;4th thread 304 is used to use to the Message Processing in second message queue into message cartridge interface The alerting pattern of message box concurrently carries out prompting message, and according to the type of message of message in message box, to message Classification is carried out to show;5th thread 305 is for being pushed to backstage buffer process module to the message in third message queue, by rear Platform buffer process module carries out caching process to message.
In addition, terminal device can also create the 6th thread 306, used and each type of message by the 6th thread 306 Corresponding memory mechanism stores the message in each message queue.
When specific implementation, terminal device can be in advance in the message of action type and type of reminders setting preset time Permanent effective memory mechanism is arranged for the message of type of error and general type, for cache class in effective memory mechanism Permanent effective memory mechanism is arranged in basic buffered message in the message of type, for the dynamic buffering in the message of caching type The memory mechanism for being stored in memory is arranged in message.
Correspondingly, terminal device gets the message of action type or type of reminders from first message queue, that is, uses The memory mechanism stored in preset time stores it, can store and show the message within a preset time, when presetting Between later will the message filing no longer show;Terminal device gets type of error or general type from second message queue Message the message is stored into software client file that is, using permanent effective memory mechanism, and the asynchronous write visitor In the corresponding database table of family end account, user can inquire the message by query history messaging list;Terminal device is from The message that caching type is got in three message queues judges the message of the caching type for basic buffered message or dynamic buffering Message, if storing the message using permanent effective memory mechanism, if dynamic buffering message, then for basic buffered message The message is stored using the memory mechanism for being stored in memory, user releases software client, or when closing terminal device, terminal is set It is standby correspondingly to abandon the message.
Message prompt method shown in Fig. 2 is realized by the way of multithreading, asynchronous execution can be somebody's turn to do in multiple threads Message prompt method, performed step will not interact each other in each thread, and then guarantee that terminal device can The message prompt method is executed glibly, Caton does not occur during carrying out prompting message, preferable user experience is provided.
For above-described message prompt method, present invention also provides corresponding prompting message devices, in order to this The application and realization of a little methods in practice.
Referring to fig. 4, Fig. 4 is a kind of structure chart of prompting message device 400 corresponding with method shown in figure 2 above, should Device 400 includes:
The message is stored in by message sink and level cache module 401 for receiving the message of server transmission First-level message buffer queue;
Judgement and message classifying module 402, for judging disappearing for the message in the first-level message buffer queue Type is ceased, the message is removed from the first-level message buffer queue, and disappear described according to the type of message of the message Breath is stored in message queue corresponding with the type of message;Different message queues is for caching disappearing for different messages type Breath;A kind of type of message corresponds to a kind of prompting message mode;
Prompting message module 403 carries out message for the corresponding prompting message mode of type of message according to the message It reminds.
Optionally, on the basis of prompting message device shown in Fig. 4, the device further include:
Message subject state table obtains module, and for obtaining message subject state table, the message subject state table is used for Record message subject;
Message subscribing module, for subscribing to the message subject to the server according to the message subject state table Message;
Then message sink and level cache module 401 are specifically used for:
Receive the subscription message of the server push.
Optionally, on the basis of prompting message device shown in Fig. 4, the device further include:
Message subject state table obtains module, and for obtaining message subject state table, the message subject state table is used for Record message subject;
Type of message determining module is determined for sorting out relation table according to the message subject state table and message subject The type of message of message subject relevant to the message subject state table, the message subject sort out relation table and disappear for characterizing Cease the corresponding relationship between theme and type of message;
Message queue establishes module, for the type of message according to message subject relevant to the message subject state table Different message queues is established, a message queue is used to store the message of at least one type of message.
Optionally, prompting message module 403 is specifically used for:
To the message in different message queues, message is concurrently carried out according to the corresponding prompting message mode of type of message It reminds;Wherein, a kind of type of message corresponds to a kind of prompting message mode.
Optionally, the different message queue includes: first message queue and second message queue;
Wherein, the first message queue is described to belong to disappearing for action type for storing the message for belonging to action type Breath refers to the message comprising operation instruction information;
Wherein, the second message queue is described to belong to disappearing for type of error for storing the message for belonging to type of error Breath refer to be abnormal comprising system or user's operation fault wrong details message.
Optionally, prompting message module 403 is specifically used for:
Using Concurrent Display mode, shown according to the prompting message mode using horse race lamp corresponding with action type described Message in first message queue, and, it is shown according to corresponding with type of error using the prompting message mode of message box Message in the second message queue.
Optionally, on the basis of prompting message device shown in Fig. 4, the device further include:
Memory mechanism determining module determines the corresponding storage machine of the message for the type of message according to the message System;
Message storage module, for being carried out according to the corresponding memory mechanism of the message to the message in the message queue Storage.
Optionally, when realizing message prompt method shown in Fig. 2 using multithreading, which includes:
First thread creation module receives disappearing for server transmission by the first thread for creating first thread Breath, is stored in first-level message buffer queue for the message;
Second thread creation module, described in being judged in the first-level message buffer queue by second thread The type of message of message removes the message from the first-level message buffer queue, and according to the type of message of the message The message is stored in message queue corresponding with the type of message;
Multithreading creation module passes through the different line for creating different threads for different message queues Journey concurrently carries out prompting message to the message in different message queues.
Optionally, on the basis of prompting message device shown in Fig. 4, the device further include:
Page jump module, in response to be directed to the message jump instruction, jump to belonging to the message Business interface.
In prompting message device provided by the present application, terminal device is according to the difference of type of message, by the received message of institute The parallel processing into corresponding message queue is stored, no longer only all message in first-level message buffer queue are serially located Reason, reduces the storage and processing pressure of first-level message buffer queue;Meanwhile in message queue corresponding with each type of message Message handled parallel, also correspondingly improved the working efficiency of terminal device, reduced the waiting time of user, improve The usage experience of user.In addition, prompting message is carried out to the message in different messages queue using concurrently processing mode, from The dimension of type of message distinguishes message alerting pattern, allows user different according to the different instructions of alerting pattern Type of message pays attention to more important message convenient for user in time, prevents from generating unnecessary loss because missing important messages.
The embodiment of the present application also provides a kind of terminal devices, as shown in figure 5, for ease of description, illustrating only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The terminal can Think including mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), point-of-sale terminal Any terminal device such as (Point of Sales, POS), vehicle-mounted computer, taking the terminal as an example:
Fig. 5 shows the block diagram of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application.With reference to figure 5, mobile phone includes: radio frequency (full name in English: Radio Frequency, english abbreviation: RF) circuit 510, memory 520, input list Member 530, display unit 540, sensor 550, voicefrequency circuit 560, Wireless Fidelity (full name in English: wireless fidelity, English abbreviation: WiFi) components such as module 570, processor 580 and power supply 590.It will be understood by those skilled in the art that Fig. 5 Shown in handset structure do not constitute the restriction to mobile phone, may include than illustrating more or fewer components, or combination Certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 5 to mobile phone:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit 510 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (full name in English: Low Noise Amplifier, english abbreviation: LNA), duplexer etc..In addition, RF circuit 510 can also by wireless communication with network It is communicated with other equipment.Any communication standard or agreement can be used in above-mentioned wireless communication, and including but not limited to the whole world is mobile logical News system (full name in English: Global System of Mobile communication, english abbreviation: GSM), general packet Wireless service (full name in English: General Packet Radio Service, GPRS), CDMA (full name in English: Code Division Multiple Access, english abbreviation: CDMA), wideband code division multiple access (full name in English: Wideband Code Division Multiple Access, english abbreviation: WCDMA), long term evolution (full name in English: Long Term Evolution, english abbreviation: LTE), Email, short message service (full name in English: Short Messaging Service, SMS) etc..
Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 520 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 520 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 530 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 530 may include that touch panel 531 and other inputs are set Standby 532.Touch panel 531, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 580, and can receive order that processor 580 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 540 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (full name in English: Liquid Crystal Display, english abbreviation: LCD), Organic Light Emitting Diode (full name in English: Organic Light-Emitting Diode, english abbreviation: OLED) etc. forms configure display panel 541.Further, touch panel 531 can cover display surface Plate 541 sends processor 580 to and is touched with determining after touch panel 531 detects touch operation on it or nearby The type of event is followed by subsequent processing device 580 according to the type of touch event and provides corresponding visual output on display panel 541. Although touch panel 531 and display panel 541 are as two independent components the input of realizing mobile phone and defeated in Fig. 5 Enter function, but in some embodiments it is possible to touch panel 531 and display panel 541 is integrated and realized the input of mobile phone And output function.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 541, proximity sensor can close display panel 541 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, is turned after being received by voicefrequency circuit 560 It is changed to audio data, then by after the processing of audio data output processor 580, such as another mobile phone is sent to through RF circuit 510, Or audio data is exported to memory 520 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 570 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 570, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 580 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 520, and call and be stored in memory 520 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 580 can wrap Include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Mobile phone further includes the power supply 590 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 580 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 580 included by the terminal is also with the following functions:
The message that server is sent is received, the message is stored in first-level message buffer queue;
The type of message for judging the message in the first-level message buffer queue, from the first-level message buffer queue It is middle to remove the message, the message is stored in by message corresponding with the type of message according to the type of message of the message Queue;Different message queues is used to cache the message of different messages type;
To the message in different message queues, prompting message is concurrently carried out.
The embodiment of the present application also provides a kind of computer readable storage medium, for storing program code, the program code For executing any one embodiment in a kind of message prompt method described in foregoing individual embodiments.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, english abbreviation: ROM), random access memory (full name in English: Random Access Memory, english abbreviation: RAM), the various media that can store program code such as magnetic or disk.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of message prompt method characterized by comprising
The message that server is sent is received, the message is stored in first-level message buffer queue;
The type of message for judging the message in the first-level message buffer queue is moved from the first-level message buffer queue The message is stored in message corresponding with type of message team according to the type of message of the message by the message out Column;Different message queues is used to cache the message of different messages type;
To the message in different message queues, prompting message is concurrently carried out.
2. the method according to claim 1, wherein it is described reception server send message before, it is described Method further include:
Message subject state table is obtained, the message subject state table is for recording message subject;
The message of the message subject is subscribed to the server according to the message subject state table;
The then message for receiving server and sending, comprising:
Receive the subscription message of the server push.
3. the method according to claim 1, wherein the method also includes:
Message subject state table is obtained, the message subject state table is for recording message subject;
Sort out relation table according to the message subject state table and message subject, determination is relevant to the message subject state table The type of message of message subject, it is corresponding between message subject and type of message for characterizing that the message subject sorts out relation table Relationship;
Different message queues is established according to the type of message of message subject relevant to the message subject state table, one disappears Breath queue is used to store the message of at least one type of message.
4. the method according to claim 1, wherein the message in different message queues, concurrently Carry out prompting message, comprising:
To the message in different message queues, message is concurrently carried out according to the corresponding prompting message mode of type of message and is mentioned It wakes up;Wherein, a kind of type of message corresponds to a kind of prompting message mode.
5. method according to claim 1 to 4, which is characterized in that the different message queue includes: One message queue and second message queue;
Wherein, for storing the message for belonging to action type, the message for belonging to action type is the first message queue Refer to the message comprising operation instruction information;
Wherein, for storing the message for belonging to type of error, the message for belonging to type of error is the second message queue Finger is abnormal comprising system or the message of the wrong details of user's operation fault.
6. according to the method described in claim 5, it is characterized in that, the message in different message queues, concurrently Carry out prompting message, comprising:
Using Concurrent Display mode, described first is shown using the prompting message mode of horse race lamp according to corresponding with action type Message in message queue, and, it is shown according to the prompting message mode using message box corresponding with type of error described Message in second message queue.
7. the method according to claim 1, wherein the method also includes:
According to the type of message of the message, the corresponding memory mechanism of the message is determined;
The message in the message queue is stored according to the message corresponding memory mechanism.
8. the method according to claim 1, wherein realizing the method using multithreading, comprising:
First thread is created, the message that server is sent is received by the first thread, the message is stored in level-one and is disappeared Cease buffer queue;
The second thread is created, the message class of the message in the first-level message buffer queue is judged by second thread Type removes the message from the first-level message buffer queue, and is deposited the message according to the type of message of the message It is stored in message queue corresponding with the type of message;
Different threads is created for different message queues, by the different thread to disappearing in different message queues Breath, concurrently carries out prompting message.
9. the method according to claim 1, wherein the method also includes:
In response to being directed to the jump instruction of the message, jump to and business interface belonging to the message.
10. a kind of prompting message device characterized by comprising
The message is stored in level-one and disappeared by message sink and level cache module for receiving the message of server transmission Cease buffer queue;
Judgement and message classifying module, for judging the type of message of the message in the first-level message buffer queue, The message is removed from the first-level message buffer queue, and is stored in the message according to the type of message of the message In message queue corresponding with the type of message;Different message queues is used to cache the message of different messages type;It is a kind of Type of message corresponds to a kind of prompting message mode;
Prompting message module carries out prompting message for the corresponding prompting message mode of type of message according to the message.
11. a kind of terminal device, which is characterized in that the equipment includes processor and memory:
Said program code is transferred to the processor for storing program code by the memory;
The processor is used for according to the described in any item prompting messages of instruction execution claim 1-9 in said program code Method.
12. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing program generation Code, said program code require the described in any item message prompt methods of 1-9 for perform claim.
CN201810673130.XA 2018-06-26 2018-06-26 A kind of message prompt method, device and equipment Pending CN108965587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810673130.XA CN108965587A (en) 2018-06-26 2018-06-26 A kind of message prompt method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810673130.XA CN108965587A (en) 2018-06-26 2018-06-26 A kind of message prompt method, device and equipment

Publications (1)

Publication Number Publication Date
CN108965587A true CN108965587A (en) 2018-12-07

Family

ID=64487105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810673130.XA Pending CN108965587A (en) 2018-06-26 2018-06-26 A kind of message prompt method, device and equipment

Country Status (1)

Country Link
CN (1) CN108965587A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684102A (en) * 2018-12-14 2019-04-26 广州市百果园信息技术有限公司 Processing method, device, computer readable storage medium and the terminal of answer is broadcast live
CN109995666A (en) * 2019-04-12 2019-07-09 深圳市元征科技股份有限公司 A kind of method for message transmission and relevant apparatus
CN110365601A (en) * 2019-06-27 2019-10-22 苏州科达科技股份有限公司 Message treatment method, device and electronic equipment for video conference control front end
CN110377571A (en) * 2019-06-24 2019-10-25 苏州浪潮智能科技有限公司 A kind of violation log processing method, device and computer readable storage medium
CN112099895A (en) * 2020-09-28 2020-12-18 广州华多网络科技有限公司 Interface notification message scheduling method, device, equipment and storage medium
CN112188224A (en) * 2020-09-28 2021-01-05 广州华多网络科技有限公司 Interface message flow control method, device, equipment and storage medium
CN112711490A (en) * 2021-03-26 2021-04-27 统信软件技术有限公司 Message processing method, computing device and storage medium
CN113515391A (en) * 2021-05-14 2021-10-19 北京字节跳动网络技术有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN113703692A (en) * 2021-11-01 2021-11-26 飞狐信息技术(天津)有限公司 Message writing method and message reading method based on cache optimization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075701A1 (en) * 2002-10-16 2004-04-22 Scott Ng Dynamic Interactive animated screen saver
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
CN104506715A (en) * 2014-12-05 2015-04-08 小米科技有限责任公司 Method and device for displaying notification messages
CN106230922A (en) * 2016-07-28 2016-12-14 上海斐讯数据通信技术有限公司 A kind of news subscribing method, message production unit and message reception units
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075701A1 (en) * 2002-10-16 2004-04-22 Scott Ng Dynamic Interactive animated screen saver
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
CN104506715A (en) * 2014-12-05 2015-04-08 小米科技有限责任公司 Method and device for displaying notification messages
CN106230922A (en) * 2016-07-28 2016-12-14 上海斐讯数据通信技术有限公司 A kind of news subscribing method, message production unit and message reception units
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684102A (en) * 2018-12-14 2019-04-26 广州市百果园信息技术有限公司 Processing method, device, computer readable storage medium and the terminal of answer is broadcast live
CN109684102B (en) * 2018-12-14 2023-06-09 广州市百果园信息技术有限公司 Processing method and device for live answer questions, computer readable storage medium and terminal
CN109995666A (en) * 2019-04-12 2019-07-09 深圳市元征科技股份有限公司 A kind of method for message transmission and relevant apparatus
CN110377571A (en) * 2019-06-24 2019-10-25 苏州浪潮智能科技有限公司 A kind of violation log processing method, device and computer readable storage medium
CN110377571B (en) * 2019-06-24 2021-10-22 苏州浪潮智能科技有限公司 Violation log processing method and device and computer readable storage medium
CN110365601A (en) * 2019-06-27 2019-10-22 苏州科达科技股份有限公司 Message treatment method, device and electronic equipment for video conference control front end
CN112099895A (en) * 2020-09-28 2020-12-18 广州华多网络科技有限公司 Interface notification message scheduling method, device, equipment and storage medium
CN112188224A (en) * 2020-09-28 2021-01-05 广州华多网络科技有限公司 Interface message flow control method, device, equipment and storage medium
CN112711490A (en) * 2021-03-26 2021-04-27 统信软件技术有限公司 Message processing method, computing device and storage medium
CN113515391A (en) * 2021-05-14 2021-10-19 北京字节跳动网络技术有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN113703692A (en) * 2021-11-01 2021-11-26 飞狐信息技术(天津)有限公司 Message writing method and message reading method based on cache optimization

Similar Documents

Publication Publication Date Title
CN108965587A (en) A kind of message prompt method, device and equipment
CN105278937B (en) A kind of method and device showing pop-up box message
CN106453511B (en) A kind of data back up method and equipment
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
CN109690479A (en) A kind of method, device and mobile terminal being associated with notification message
CN106453767A (en) Method and device for detecting failure after dropping
CN103530040A (en) Method, device and electronic equipment for moving target element
CN107329985A (en) A kind of collecting method of the page, device and mobile terminal
CN104424307B (en) A kind of intelligent terminal application program classification method, system and intelligent terminal
CN103313139A (en) History display method and device and electronic device
CN106302996A (en) Message display method and device
CN106371964A (en) Message prompting method and apparatus
CN107315488A (en) A kind of searching method of expression information, device and mobile terminal
CN106131804A (en) A kind of notification message processing method and equipment
CN106445336A (en) Fast acquisition method for electronic resource and mobile terminal
CN109871358A (en) A kind of management method and terminal device
CN106791185A (en) Method for managing contact person information, device and mobile terminal
CN103310007A (en) Method, device and equipment for switching webpage
CN106506815A (en) A kind of application enables method and relevant device
CN108900386A (en) Production method, device and the electronic equipment of warning information
CN106648460B (en) Step counting data filtering method and intelligent terminal
CN108781176A (en) Message informing method and terminal
CN108055383A (en) Acquisition methods, device and the mobile terminal of screenshot picture
CN106502827A (en) A kind of data back up method and equipment
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207