CN110493122A - A kind of synchronous method of session information, calculates equipment and storage medium at device - Google Patents
A kind of synchronous method of session information, calculates equipment and storage medium at device Download PDFInfo
- Publication number
- CN110493122A CN110493122A CN201910811409.4A CN201910811409A CN110493122A CN 110493122 A CN110493122 A CN 110493122A CN 201910811409 A CN201910811409 A CN 201910811409A CN 110493122 A CN110493122 A CN 110493122A
- Authority
- CN
- China
- Prior art keywords
- session
- information
- version number
- user
- whole
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/216—Handling conversation history, e.g. grouping of messages in sessions or threads
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of synchronous method of session information, suitable for being executed in calculating equipment, calculate the application being populated in equipment for instant messaging, this method comprises: the logging state of account is applied in detection, when being switched to presence by off-line state using account, user's whole session version number is obtained from the server coupled with calculating equipment;Judge whether the user's whole session version number obtained and the user's whole session version number being locally stored are consistent, if it is inconsistent, obtaining user's whole session summary info from server, session summary info includes at least ID and the version number of each session;It is index with the ID of each session, the version number for each session that will acquire and the version number for each session being locally stored compare, to determine changed session;The information of changed session is obtained from server, and updates caching.
Description
Technical field
The present invention relates to data synchronization technology field more particularly to a kind of synchronous method of session information, device, calculating to set
Standby and storage medium.
Background technique
IM (instant message) instant messaging is a kind of tool based on internet Online talking, including text
The functions such as the chat of word information, file transmission, voice or video communication.Common instant chat software such as wechat, QQ, nail in life
Nail etc., some games on line, social application etc. may be described as immediate communication tool.Instant message has for individual application
The different type applied with enterprise.After user can be by installing instant messaging application on computer or mobile terminal, account is registered
Number carrying out instant message with one or more other users exchanges.The online instant messenger of webpage version can make up for it third
Square chat software bring inconvenience can be realized push prompt after offline message automatically saves, is online, display chat person exists
The functions such as linear state, browser-cross compatibility.
Most crucial function is the synchronization and storage of message in instant communicating system, and synchronizing for message will generally be supported online
Synchronous with offline push and multiterminal, the storage of message refers to the preservation in cloud, account may be implemented logs in arbitrary end to check
All history messages.
But instant messaging there is also some problems, for example, instant message applications is various, different IM software intercommunication problems are also
Do not solve: different users may use different immediate information softwares, cannot directly exchange between various softwares, need in this way
It could be exchanged simultaneously with multiple users using a variety of IM softwares.
In existing instant message synchronization scheme, generally combined using this latest news caching with history message request
Mode, to solve the problems, such as information drop-out.But if user's history message is excessive, flow consumption can be obviously increased, no
The experience of message is browsed conducive to user.Also, in simultaneous session list, it is most of using it is direct it is fully synchronized by the way of, can
The repetition of message can be will cause.
Therefore, it is necessary to a kind of synchronous method of session information, be able to solve data volume it is larger when data synchronization process in go out
Existing Caton and obstructing problem.
Summary of the invention
For this purpose, the present invention provides a kind of synchronous method of session information, device, equipment and storage medium are calculated, with power
Illustrate certainly or at least alleviate at least one existing problem above.
According to an aspect of the invention, there is provided a kind of synchronous method of session information, suitable for being held in calculating equipment
Row, wherein calculating the application being populated in equipment for instant messaging.In the method, firstly, the login of account is applied in detection
State obtains user from the server coupled with calculating equipment when being switched to presence by off-line state using account
Whole session versions number.Then, the user's whole session version for judging the user's whole session version number obtained and being locally stored
Whether number consistent, if it is inconsistent, obtaining user's whole session summary info from server, session summary info is at least wrapped
Include ID and the version number of each session.It then, is index, the version number for each session that will acquire and sheet with the ID of each session
The version number of each session of ground storage compares, to determine changed session.Finally, obtaining hair from server
The information of the session for changing, and update caching.
Optionally, in the above-mentioned methods, when being online using account, the meeting of the user from server is received
Talk about information.
Optionally, in the above-mentioned methods, session information includes at least the ID of each information, firstly, obtaining from server
At least one latest data of the information of changed session.Then, it before at least one latest data, is inserted into one and breaks
Layer information, the ID of first information at least one latest data of fault information label.When the lookup for receiving user is gone through
When the instruction of history information, it is based on fault information, from the ID of first information obtained at least one latest data in server
Pervious historical information, updating when the historical information of acquisition is overlapped with the historical information being locally stored terminates, and deletes
The fault information.
Optionally, in the above-mentioned methods, the variation for monitoring data in caching, when listening to data variation, from caching
The information of changed session is obtained, and is shown in user interface.
Optionally, in the above-mentioned methods, when session information changes, the version number of more new session.When user's whole
When the version number of any one session changes in session version, user's whole session version number is updated.
Optionally, in the above-mentioned methods, as the ID for some session being locally stored in the session summary info of acquisition not
In the presence of, determine that the session is the session being deleted;When the corresponding version number of the ID for some session being locally stored and obtain
The session the corresponding version number of ID it is inconsistent when, determine that the session is the session modified;When some session of acquisition
In the absence of ID is in being locally stored, determine that the session is newly-increased session.
Optionally, in the above-mentioned methods, the session being deleted is deleted in being locally stored;By what is increased newly or modified
The information of session is being locally stored.
According to another aspect of the present invention, provide a kind of synchronizing device of session information, including first obtain module,
Judgment module, second obtain module, contrast module and update module.Wherein, first module is obtained, suitable for detecting using account
Number logging state when being switched to presence by off-line state, from calculate that user is obtained in the server that equipment couples is whole
Session version number.Judgment module, suitable for the user's whole session for judging the user's whole session version number obtained with being locally stored
Whether version number is consistent.Second obtains module, suitable in acquisition user's whole session version number and the user that is locally stored it is complete
When portion's session version number is inconsistent, user's whole session summary info is obtained from server, the session summary info is at least
ID and version number including each session.Contrast module, suitable for being index with the ID of each session, each session that will acquire
Version number and the version number for each session being locally stored compare, to determine changed session.Update module is fitted
In obtaining the information of changed session from server, and update caching.
Another aspect according to the present invention provides a kind of calculating equipment, including at least one processor;It is stored with program
The memory of instruction, wherein program instruction is configured as being executed by least one processor.
According to a further aspect of the present invention, a kind of computer readable storage medium storing one or more programs is provided.
Here one or more programs include instruction, when these instructions are executed by calculating equipment, so that the calculating equipment executes
State method.
Through the above scheme, according to present aspect scheme, using dual layer versions judgment mechanism, can session information amount compared with
When more, the consumption of flow is reduced;The load that can reduce server using the asynchronous scheme for obtaining data effectively reduces data reading
Write operation substantially increases the problem of client receives Caton in the case of the handling capacity and high concurrent of server;By in meeting
Fault information is added during words synchronizing information, can guarantee the integrality that session information updates to avoid loss of data.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings
Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect
It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned
And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical
Component or element.
Fig. 1 shows the organigram according to an embodiment of the invention for calculating equipment 100;
Fig. 2 shows the schematic flow charts of the synchronous method 200 of session information according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of the synchronizing device 300 of session information according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The message synchronization framework of IM instant chat system usually first stores at present synchronizes afterwards.There are two Ku Laibao for message
It deposits, one is message store, and the message of all sessions is saved for full dose, is mainly used for supporting message roaming.The other is
Message synchronization library, the multiterminal for being mainly used for recipient are synchronous.Message first can be stored in message store by server-side, after be saved in
Message synchronization library.Online push can be directly selected for online recipient, for pushing failure or offline recipient online,
Recipient actively can pull all non-synchronization messages to server-side.When size of message is more, it is easy to appear Caton and synchronizes and disappear
The problem of ceasing tomography.To solve the above-mentioned problems, this programme provides a kind of synchronous method of session information, can effectively solve the problem that same
The problem of walking information drop-out, while flow consumption is reduced, promote user experience.
Fig. 1 shows the organigram according to an embodiment of the invention for calculating equipment 100.In basic configuration
In 102, calculates equipment 100 and typically comprise system storage 106 and one or more processor 104.Memory bus 108
It can be used for the communication between processor 104 and system storage 106.
Depending on desired configuration, processor 104 can be any kind of processing, including but not limited to: microprocessor
(μ P), microcontroller (μ C), digital information processor (DSP) or any combination of them.Processor 104 may include such as
The cache of one or more rank of on-chip cache 110 and second level cache 112 etc, processor core
114 and register 116.Exemplary processor core 114 may include arithmetic and logical unit (ALU), floating-point unit (FPU),
Digital signal processing core (DSP core) or any combination of them.Exemplary Memory Controller 118 can be with processor
104 are used together, or in some implementations, and Memory Controller 118 can be an interior section of processor 104.
Depending on desired configuration, system storage 106 can be any type of memory, including but not limited to: easily
The property lost memory (RAM), nonvolatile memory (ROM, flash memory etc.) or any combination of them.System storage
Device 106 may include operating system 120, one or more program 122 and program data 124.In some embodiments,
Program 122 may be arranged to be operated using program data 124 on an operating system.
Calculating equipment 100 can also include facilitating from various interface equipments (for example, output equipment 142, Peripheral Interface
144 and communication equipment 146) to basic configuration 102 via the communication of bus/interface controller 130 interface bus 140.Example
Output equipment 142 include graphics processing unit 148 and audio treatment unit 150.They can be configured as facilitate via
One or more port A/V 152 is communicated with the various external equipments of such as display or loudspeaker etc.Outside example
If interface 144 may include serial interface controller 154 and parallel interface controller 156, they, which can be configured as, facilitates
Via one or more port I/O 158 and such as input equipment (for example, keyboard, mouse, pen, voice-input device, touch
Input equipment) or the external equipment of other peripheral hardwares (such as printer, scanner etc.) etc communicated.Exemplary communication is set
Standby 146 may include network controller 160, can be arranged to convenient for via one or more communication port 164 and one
A or multiple other calculate communication of the equipment 162 by network communication link.
In some embodiments, calculating equipment 100 can be configured to execute the side of synchronization of session information according to the present invention
Method 200.Wherein, the one or more programs 122 for calculating equipment 100 include for executing the same of session information according to the present invention
The instruction of one step process 200.
This programme includes session synchronization and synchronizing information.Wherein, session refers to user and a chatting object, as user,
Group, chatroom etc., between chat.Session is the carrier of information, and the type of information can be text, voice, picture, text
Part, position etc..In simultaneous session information, it is first determined need synchronous session out, then synchronized to the information in session.
Fig. 2 shows the schematic flow charts of the synchronous method 200 of session information according to an embodiment of the invention.
This method can execute in calculating equipment 100, wherein calculate the application being populated in equipment 100 for instant messaging, calculate
Equipment is connect with server network.As shown in Fig. 2, this method is suitable for step S210, first in step S210, account is applied in detection
Number logging state, when using account presence is switched to by off-line state when, from calculate equipment couple server in
Obtain user's whole session version number.
Wherein, using the logging state of account can for single-ended online, multiterminal online or off-line state.It is according to the present invention
One embodiment, application account can simultaneously instant communication applications page end and cell phone client or iPad client into
Row logs in.When application account is multiterminal presence, then respective user session information is carried out more simultaneously at multiple login ends
Newly.Specifically, it is available using account in each registration terminal to the operation information of session information, operation information is synchronized to
Other terminals, and in the interface display operation information of other terminals.When being online using account, receive from service
The user session information of device is simultaneously being locally stored.In order to reduce the consumption of flow when session information synchronizes, can be answered detecting
When being switched to presence by off-line state with account, the session of user's whole first is obtained from the server coupled with calculating equipment
Version number.Wherein, the corresponding version number of each session then will be updated version when each session content or state change
This number, the version number of session is safeguarded in the server.Therefore, it can judge whether a certain session information is sent out according to version number
Changing.Each user saves the version number of all sessions, when the version number of wherein any one session changes, then
Update user's whole session version number, therefore, can be judged according to user's whole session version number user whole sessions whether
It changes, is then not necessarily to update session information when not changing.
Then in step S220, user's whole session version number of acquisition and the user's whole session being locally stored are judged
Whether version number is consistent, if it is inconsistent, obtaining user's whole session summary info from server, session summary info is extremely
ID including each session and version number less.
It is whole in the user being locally stored when user's whole session version number of acquisition is synchronous with last session information
When session version difference, then illustrate that session information is changed.At this moment user's whole session abstract letter can be obtained first
Breath.Wherein, session summary info has recorded the essential information of a session, ID, version number including session etc..
It then is index, the version number for each session that will acquire and local with the ID of each session in step S230
The version number of each session of storage compares, to determine changed session.
According to one embodiment of present invention, the version number of each session for the user that can be will acquire be locally stored
The version number of each session of user carries out one-to-one comparison.When the ID for some session being locally stored makes a summary in the session of acquisition
In the absence of in information, determine that the session is the session being deleted.When the corresponding version of the ID for some session being locally stored
Number with the corresponding version number of the ID of the session obtained it is inconsistent when, determine that the session is the session modified.When certain of acquisition
In the absence of the ID of a session is in being locally stored, determine that the session is newly-increased session.
Since chat network protocol is generally divided into two kinds of forms of server active push and client active pull.In order to protect
Efficient, low consumed synchronizing information is demonstrate,proved, the two can be used in combination.In an implementation of the invention, it can use
The asynchronous mode for obtaining data.Such as a monitoring interface is registered in user interface, under Observer Pattern, whenever listening to number
According to variation, then data are obtained from memory.
Finally in step S240, the information of changed session is obtained from server, and updates caching.
The session being deleted directly is deleted in being locally stored, for session that is newly-increased or being modified, Ke Yifen
Page obtains the session details of the session and is updated to local cache.Wherein, in session details include a session included it is complete
Portion's information, a newest data of ID, title, mark, the session for example including session.
When being online using account, using the mode simultaneous session information of server active push, work as application
When account is in off-line state, if the message that client receives is excessive, in order to reduce flow consumption, using account after line
It can selectively synchronize newest session information, rather than all information.Wherein, session information include the ID of information, content,
Time etc..According to one embodiment of present invention, can be obtained from server first the information of changed session to
A few latest data.Such as it can be the newest page of data of paging acquisition.Then, before at least one latest data,
It is inserted into a fault information, wherein the ID of first information at least one latest data of fault information label.When receiving
When the instruction of the lookup historical information of user, be based on fault information, from obtained in server at least one latest data the
The pervious historical information of the ID of one information, the update when historical information of acquisition is overlapped with the historical information being locally stored
Terminate, and deletes fault information.If then be used directly the session information of local cache without tomography message, without carrying out more
Newly, the consumption of flow and the use of memory can be greatly reduced in this way.
For example, the ID of the last information being locally stored when using account being presence is 1-5.This user account by
When off-line state is switched to presence, newest page of data can be synchronized first, such as ID is 9-13, is then updating letter
First data of breath, the i.e. data that ID is 9 are inserted into fault information before, the first of more new information are marked in fault information
The ID9 of data.When user, which turns over, searches historical information, in conjunction with the fault information, generated when obtaining offline from server
Information then terminate synchronous historical information when the historical information of acquisition has overlapping with the information being locally stored.Obtain ID
For the data of 6-8.
Fig. 3 shows the structural schematic diagram of the synchronizing device 300 of session information according to an embodiment of the invention.Such as
Shown in Fig. 3, which includes the first acquisition module 310, judgment module 320, second acquisition module 330, contrast module 340
With update module 350.Wherein, the first acquisition module 310 can be cut detecting the logging state using account by off-line state
When changing to presence, user's whole session version number is obtained from the server coupled with calculating equipment.Judgment module 320 can
To judge whether the user's whole session version number obtained and the user's whole session version number being locally stored are consistent.When the two one
It then indicates when cause without updating session information.Second obtains module 330 can be in user's whole session version number of acquisition and this
When user's whole session version number of ground storage is inconsistent, user's whole session summary info is obtained from server, wherein can
Talk about ID and version number that summary info includes at least each session.Contrast module 340 can be index with the ID of each session, will
The version number of each session and the version number for each session being locally stored obtained compares, changed to determine
Session.Update module 350 can obtain the information of changed session from server, and update caching.Above each module
Function and the specific logic that executes can refer to the process of method 200, which is not described herein again.
Flow can be reduced when session information amount is more using dual layer versions judgment mechanism according to present aspect scheme
Consumption;The load that can reduce server using the asynchronous scheme for obtaining data, is effectively reduced I/O operation, substantially increases clothes
The problem of client receives Caton in the case of the handling capacity and high concurrent of device of being engaged in;By being added in session information synchronizing process
Fault information can guarantee the integrality that session information updates to avoid loss of data.
It should be appreciated that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, it is right above
In the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure or
In person's descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. claimed hair
Bright requirement is than feature more features expressly recited in each claim.More precisely, as the following claims
As book reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific real
Thus the claims for applying mode are expressly incorporated in the specific embodiment, wherein each claim itself is used as this hair
Bright separate embodiments.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups
Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example
In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple
Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various technologies described herein are realized together in combination with hardware or software or their combination.To the present invention
Method and apparatus or the process and apparatus of the present invention some aspects or part can take insertion tangible media, such as it is soft
The form of program code (instructing) in disk, CD-ROM, hard disk drive or other any machine readable storage mediums,
Wherein when program is loaded into the machine of such as computer etc, and is executed by the machine, the machine becomes to practice this hair
Bright equipment.
In the case where program code executes on programmable computers, calculates equipment and generally comprise processor, processor
Readable storage medium (including volatile and non-volatile memory and or memory element), at least one input unit, and extremely
A few output device.Wherein, memory is configured for storage program code;Processor is configured for according to the memory
Instruction in the said program code of middle storage executes method of the present invention.
By way of example and not limitation, computer-readable medium includes computer storage media and communication media.It calculates
Machine readable medium includes computer storage media and communication media.Computer storage medium storage such as computer-readable instruction,
The information such as data structure, program module or other data.Communication media is generally modulated with carrier wave or other transmission mechanisms etc.
Data-signal processed passes to embody computer readable instructions, data structure, program module or other data including any information
Pass medium.Above any combination is also included within the scope of computer-readable medium.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment
The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method
The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice
Element described in this is the example of following device: the device be used for implement as in order to implement the purpose of the invention element performed by
Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc.
Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must
Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from
It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that
Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit
Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this
Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this
Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.
Claims (10)
1. a kind of synchronous method of session information is populated in the calculating equipment suitable for executing in calculating equipment for i.e.
When the application that communicates, wherein the described method includes:
Detection apply account logging state, when using account presence is switched to by off-line state when, from calculate equipment
User's whole session version number is obtained in the server of coupling;
Judge whether the user's whole session version number obtained and the user's whole session version number being locally stored are consistent, if not
Unanimously, then user's whole session summary info is obtained from server, the session summary info includes at least each session
ID and version number;
It is index, the version number of the version number for each session that will acquire and each session being locally stored with the ID of each session
It compares, to determine changed session;
The information of changed session is obtained from server, and updates caching.
2. the method for claim 1, wherein
When the application account is online, the session information of the user from the server is received, and in local
Storage.
3. method according to claim 2, wherein the session information includes at least the ID of each information, described from service
The step of information of changed session is obtained in device include:
At least one latest data of the information of changed session is obtained from server;
Before at least one latest data, it is inserted into a fault information, the fault information label described at least one
The ID of first information in latest data;
When receiving the instruction of lookup historical information of user, it is based on the fault information, at least one is obtained from server
The pervious historical information of ID of first information in latest data, until the historical information of acquisition is believed with the history being locally stored
Breath has update when coincidence to terminate, and deletes the fault information.
4. method as claimed in claim 3, wherein the method also includes:
The variation for monitoring data in caching obtains the information of changed session when listening to data variation from caching,
And it shows in user interface.
5. method according to claim 2, wherein
When session information changes, the version number of more new session;
When the version number of any one session in user's whole session version changes, user's whole session version is updated
This number.
6. the method for claim 1, wherein described the step of determining changed session, includes:
In the absence of the ID for some session being locally stored is in the session summary info of acquisition, determine that the session is to be deleted
The session removed;
When version number corresponding with the ID of the session obtained, the corresponding version number of the ID for some session being locally stored is inconsistent
When, determine that the session is the session modified;
When acquisition some session ID in being locally stored in the absence of, determine that the session is newly-increased session.
7. method as claimed in claim 6, wherein
The session being deleted is deleted in being locally stored;
The information of session that is newly-increased or being modified is being locally stored.
8. a kind of synchronizing device of session information, wherein include:
First obtains module, suitable for when detecting that the logging state using account is switched to presence by off-line state, from
User's whole session version number is obtained in the server that equipment couples with calculating;
Judgment module, the user's whole session version number obtained suitable for judgement are with the user's whole session version number being locally stored
It is no consistent;
Second obtains module, suitable in acquisition user's whole session version number and user's whole session version number for being locally stored
When inconsistent, user's whole session summary info is obtained from server, the session summary info includes at least each session
ID and version number;
Contrast module, suitable for the ID of each session be index, the version number for each session that will acquire be locally stored it is each
The version number of a session compares, to determine changed session;
Update module suitable for obtaining the information of changed session from server, and updates caching.
9. a kind of calculating equipment, wherein include:
Memory;
One or more processors;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by described one
A or multiple processors execute, and one or more of programs include for executing in -7 the methods according to claim 1
The instruction of either method.
10. a kind of computer readable storage medium for storing one or more programs, one or more of programs include instruction,
Described instruction is when calculating equipment execution, so that the equipment that calculates executes appointing in method described in -7 according to claim 1
One method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910811409.4A CN110493122B (en) | 2019-08-29 | 2019-08-29 | Session information synchronization method and device, computing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910811409.4A CN110493122B (en) | 2019-08-29 | 2019-08-29 | Session information synchronization method and device, computing equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110493122A true CN110493122A (en) | 2019-11-22 |
CN110493122B CN110493122B (en) | 2022-01-28 |
Family
ID=68555292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910811409.4A Active CN110493122B (en) | 2019-08-29 | 2019-08-29 | Session information synchronization method and device, computing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493122B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111400477A (en) * | 2020-03-25 | 2020-07-10 | 联想(北京)有限公司 | Information processing method, system and computer readable storage medium |
CN111683045A (en) * | 2020-04-28 | 2020-09-18 | 中国平安财产保险股份有限公司 | Session information processing method, device, equipment and storage medium |
CN111953580A (en) * | 2020-07-17 | 2020-11-17 | 上海泛微网络科技股份有限公司 | Method, device and storage medium for sending and acquiring session |
CN112637314A (en) * | 2020-12-17 | 2021-04-09 | 深圳市和讯华谷信息技术有限公司 | Message synchronization method, system, first terminal equipment, server and medium |
CN114364056A (en) * | 2021-12-28 | 2022-04-15 | 天翼物联科技有限公司 | Method, system, device and storage medium for controlling terminal LWM2M session |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1708014A (en) * | 2004-06-08 | 2005-12-14 | Lg电子株式会社 | Method for synchronizing status information of IMPS client |
CN101770515A (en) * | 2010-01-18 | 2010-07-07 | 杭州顺网科技股份有限公司 | Data block comparison based data updating method |
CN102387178A (en) * | 2010-08-31 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Method and device for upgrading message |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN103338144A (en) * | 2013-05-30 | 2013-10-02 | 华为软件技术有限公司 | Session data synchronization method and session data synchronization device |
US20140108576A1 (en) * | 2009-03-23 | 2014-04-17 | Google Inc. | Systems and methods for searching multiple instant messages |
CN107171930A (en) * | 2017-04-20 | 2017-09-15 | 北京三快在线科技有限公司 | Information displaying method and device in a kind of instant messaging application, electronic equipment |
-
2019
- 2019-08-29 CN CN201910811409.4A patent/CN110493122B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1708014A (en) * | 2004-06-08 | 2005-12-14 | Lg电子株式会社 | Method for synchronizing status information of IMPS client |
US20140108576A1 (en) * | 2009-03-23 | 2014-04-17 | Google Inc. | Systems and methods for searching multiple instant messages |
CN101770515A (en) * | 2010-01-18 | 2010-07-07 | 杭州顺网科技股份有限公司 | Data block comparison based data updating method |
CN102387178A (en) * | 2010-08-31 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Method and device for upgrading message |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN103338144A (en) * | 2013-05-30 | 2013-10-02 | 华为软件技术有限公司 | Session data synchronization method and session data synchronization device |
CN107171930A (en) * | 2017-04-20 | 2017-09-15 | 北京三快在线科技有限公司 | Information displaying method and device in a kind of instant messaging application, electronic equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111400477A (en) * | 2020-03-25 | 2020-07-10 | 联想(北京)有限公司 | Information processing method, system and computer readable storage medium |
CN111683045A (en) * | 2020-04-28 | 2020-09-18 | 中国平安财产保险股份有限公司 | Session information processing method, device, equipment and storage medium |
CN111683045B (en) * | 2020-04-28 | 2023-08-01 | 中国平安财产保险股份有限公司 | Session information processing method, device, equipment and storage medium |
CN111953580A (en) * | 2020-07-17 | 2020-11-17 | 上海泛微网络科技股份有限公司 | Method, device and storage medium for sending and acquiring session |
CN112637314A (en) * | 2020-12-17 | 2021-04-09 | 深圳市和讯华谷信息技术有限公司 | Message synchronization method, system, first terminal equipment, server and medium |
CN114364056A (en) * | 2021-12-28 | 2022-04-15 | 天翼物联科技有限公司 | Method, system, device and storage medium for controlling terminal LWM2M session |
CN114364056B (en) * | 2021-12-28 | 2023-08-29 | 天翼物联科技有限公司 | Control method, system, device and storage medium for LWM2M session of terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110493122B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110493122A (en) | A kind of synchronous method of session information, calculates equipment and storage medium at device | |
CN103250138B (en) | Method, system and client equipment for application execution | |
US11243595B2 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
KR20230003095A (en) | Information transmission method, information transmission device and electronic device | |
CN102035893A (en) | Method and system for pushing data actively by server | |
CN113568884A (en) | File management method and device, electronic equipment and storage medium | |
CN102591668B (en) | Device, method and system for updating elastic computing cloud system | |
CN109922138A (en) | Information push method, device and system | |
CA2923896C (en) | Email webclient notification queuing | |
CN105049336A (en) | Method and system for processing instant communication messages, server and client | |
CN104243285A (en) | Message pushing method and server | |
US10938773B2 (en) | Method and apparatus for synchronizing contact information and medium | |
CN108712320A (en) | Information push method and device | |
KR102020358B1 (en) | Terminal and method for synchronizing application thereof | |
CN110505072B (en) | Method, terminal device and computer readable medium for backing up chat records | |
CN110740145A (en) | Message consumption method, device, storage medium and electronic equipment | |
CN102411511B (en) | Data migration for service upgrades | |
CN109600423A (en) | Method of data synchronization, device, electronic equipment and storage medium | |
CN101986659A (en) | Real-time data transmission method and system | |
CN113254274A (en) | Message processing method, device, storage medium and server | |
CN105119944B (en) | Application starting method and related device | |
CN112242944A (en) | File processing method and related device | |
CN105554134A (en) | Information synchronization and device | |
CN105978853B (en) | Session scheduling method, scheduling server and terminal | |
CN111290873B (en) | Fault processing method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |