Repeated message processing method and terminal
A processing method and terminal processing technology, applied in the direction of advanced technology, digital transmission system, climate sustainability, etc., can solve problems such as non-reception, unsuccessful sending of response information, etc., and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0073] A method for processing repeated messages, comprising the steps of:
[0074] S1. If no message delivery signal returned by the client is received after sending the message, mark the message as a message to be resent;
[0075] S2. Obtain the receiver ID corresponding to the message to be resent, and determine whether the receiver ID is stored in the failed message cache queue, if not, execute S3, and if so, add the message to be resent to A list of messages to be resent identified by the receiver in the failed message cache queue;
[0076] Wherein, the receiver identifiers in the failure message buffer queue are prioritized according to the sequence of preset time identifiers;
[0077] In an optional implementation, the failure message cache queue is redis, and the cache format is sortset format, where the key stores the fixed content msg_key, which represents the unique identifier of the ca...
Embodiment 2
[0089] A method for processing repeated messages, which differs from Embodiment 1 in that:
[0090] It also includes: if the message delivery signal returned by the client is received after the message is sent, the receiver ID corresponding to the message is obtained, and it is judged whether the receiver ID is stored in the failed message cache queue, and if so, the receiver ID is sent The corresponding list of messages to be resent;
[0091] S42 also includes:
[0092] S421. Push the list of messages to be resent to the client, and determine whether the message pull signal sent by the client is received, and if so, execute S422;
[0093] Among them, pushing the list of messages to be resent to the client is as follows: call the paging interface, and push the list of messages to be resent by paging. The parameters of the paging interface include the page size parameter and the client’s received message list parameter; the page size parameter can be adjusted and set The numb...
Embodiment 3
[0096] Please refer to figure 2 , Embodiment three of the present invention is:
[0097] A processing terminal 1 for repeating messages, including a processor 2, a memory 3, and a computer program stored on the memory 3 and operable on the processor 2, the processor 2 implements the embodiment when executing the computer program Each step in one or embodiment two.
[0098] To sum up, the present invention provides a method for processing repeated messages and a terminal. If a message delivery signal is not received after sending a message, the message is marked as a message to be resent, and the received message corresponding to the message is obtained. If the receiver ID already exists in the cache, update the message to be resent to the list of messages to be resent corresponding to the receiver ID; if there is no receiver ID in the cache, store the receiver ID to the cache and update the message to be resent to the list of messages to be resent corresponding to the recei...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

