CN105577762A - Local offline push realization method, apparatus and system - Google Patents

Local offline push realization method, apparatus and system Download PDF

Info

Publication number
CN105577762A
CN105577762A CN201510943747.5A CN201510943747A CN105577762A CN 105577762 A CN105577762 A CN 105577762A CN 201510943747 A CN201510943747 A CN 201510943747A CN 105577762 A CN105577762 A CN 105577762A
Authority
CN
China
Prior art keywords
propelling movement
module
event
remaining time
instruction
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
Application number
CN201510943747.5A
Other languages
Chinese (zh)
Other versions
CN105577762B (en
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.)
GUANGZHOU BAIYUN BIO-TECH Co Ltd
Original Assignee
GUANGZHOU BAIYUN BIO-TECH Co Ltd
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 GUANGZHOU BAIYUN BIO-TECH Co Ltd filed Critical GUANGZHOU BAIYUN BIO-TECH Co Ltd
Priority to CN201510943747.5A priority Critical patent/CN105577762B/en
Publication of CN105577762A publication Critical patent/CN105577762A/en
Application granted granted Critical
Publication of CN105577762B publication Critical patent/CN105577762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention relates to a local offline push realization method, apparatus and system. The method comprises the following steps: S1, determining whether a user is online; if the user is offline, executing steps from S4 to S6; if the user is online, determining whether a push event takes place, if the push event does not take place, not executing any operation; and if the push event takes place, continuously executing the next step; S2, receiving the push event and adding the push event to a local buffer memory; S3, continuously determining whether the user is still online, if the user is still online and the push event continuously takes place, returning to the second step; and otherwise, continuously executing the next step; S4, traversing all push events added to the local buffer memory; S5, scheduling an engine interface, and registering all the push events through the engine interface; and S6, pushing all the push events. According to the invention, the influence exerted by message push on application experience of an online user is avoided, and better application experience is brought to the user; and the burden of a server is mitigated.

Description

A kind of implementation method, Apparatus and system of local off-line propel
Technical field
The present invention relates to communication technical field, be specifically related to a kind of implementation method, Apparatus and system of local off-line propel.
Background technology
Propelling movement is a kind of mechanism be based upon on client computer and server, initiatively information is sent to the technology of client computer by server.Along with the development of Internet technology and the kind of mobile applications increase, increasing user uses mobile applications to meet it by mobile device and uses needs, such as, the mobile applications of aspects of game play, the mobile applications, the mobile applications of study and work aspect, the mobile applications of amusement and travel aspect etc. of life aspect.Then in order to realize the business information of mobile applications or other relevant information can pass-along message be to validated user group in real time, accurately, message push is a best mode.
In prior art, be generally that this locality provided by the engine of mobile applications pushes Interface realization server to the message push of client computer.Therefore, above-mentioned propelling movement mode easily causes no matter being when user is online (also user uses in the process of mobile applications), or when user's off-line (after also user exits mobile applications or mobile applications fall back on backstage), as long as user registers, capital is to user's PUSH message, serious impact is caused on the experience of user, particularly mobile applications is utilized to carry out playing or learn or work etc. needs in the process of absorbed power user, the propelling movement of message is easy to the absorbed power of dispersion user, harmful effect is caused to the user in using.Further, the message of propelling movement may be repetition, causes user repeatedly to receive same PUSH message like this, avoids unnecessary operation and affects Consumer's Experience further.
Summary of the invention
The object of the invention is the shortcoming and defect in order to solve above-mentioned prior art, a kind of implementation method, Apparatus and system of local off-line propel are provided, realize only just carrying out message push when user is not online, avoid the impact of message push on the experience of online user, think that user brings better experience; Identical message can be pushed at synchronization to all users by alternative server simultaneously, be conducive to the burden alleviating server.
An implementation method for local off-line propel, comprises the following steps:
Step S1: judge that whether user is online; If user's off-line, then perform step S4 ~ step S6; If user is online, then judges whether propelling movement event occurs, if propelling movement event does not occur, then do not perform any operation; If the event of propelling movement occurs, continue to perform next step;
Step S2: receive propelling movement event and be added in local cache;
Step S3: continue to judge whether user goes back online, if user goes back online and the event of propelling movement continuation generation, then returns step S2; Otherwise, continue to perform next step:
Step S4: travel through all propelling movement events be added in local cache;
Step S5: call engine interface, registers all propelling movement events by engine interface;
Step S6: push all propelling movement events.
As shown from the above technical solution, the present invention is by being added in local cache when user is online by propelling movement event, simultaneously by realizing the propelling movement of the propelling movement event in local cache during user's off-line, realize thus only just carrying out message push when user is not online, avoid the impact of message push on the experience of online user, think that user brings better experience; Identical message can be pushed at synchronization to all users by the client computer alternative server of all users simultaneously, be conducive to the burden alleviating server.Further, by using local cache to realize local off-line propel, the difference needs of planning can being met, filtering out the propelling movement event of identical type by imposing a condition.
Further, described step S2 also comprises step: record and preserve each and push current time when propelling movement remaining time of event and each propelling movement event are added into local cache;
And described step S4 also comprises step:
Local zone time when recording and preserve user's off-line;
Upgrade respectively and preserve the up-to-date propelling movement remaining time that each pushes event, up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time;
And be that the up-to-date propelling movement pushing event according to each pushes all propelling movement events remaining time respectively in described step S6, it specifically comprises the following steps: judge whether the up-to-date value pushing remaining time that each pushes event is greater than 0 respectively; If so, then the propelling movement event that the up-to-date value pushing remaining time is greater than 0 is pushed; Otherwise the up-to-date value pushing remaining time of deleting in local cache is less than or equal to the propelling movement event of 0.
Perfect further by each step above-mentioned, up-to-date propelling movement difference remaining time is utilized to complete the event of propelling movement and do not completed the event of propelling movement, effectively prevent to push event repeat push, and upgrade in time locally buffered in propelling movement event, realize propelling movement event off-line propel effectively further.
Further, described step S6 also comprises step: after the value completing up-to-date propelling movement remaining time is greater than the propelling movement of propelling movement event of 0, upgrade the up-to-date propelling movement remaining time of all propelling movement events.By this step, upgrade further up-to-date the propellings movement remaining time of just pushed propelling movement event of going out, thus the propelling movement event that guarantee in time has just pushed out can not be repeated to push, thus be conducive to the accuracy and efficiency ensureing propelling movement.
Further, also record in described step S2 and preserve the propelling movement key that each pushes event.Be conducive to identifying further each propelling movement event by pushing key, and facilitate the deletion action of propelling movement event.
Further, whether the implementation method of local off-line propel of the present invention also comprises step S7: again reach the standard grade after judging user's off-line;
If so, then delete all chartered propelling movement events according to propelling movement key, delete the up-to-date value pushing remaining time in local cache simultaneously and be less than or equal to the propelling movement event of 0, and return step S1;
If not, judge whether propelling movement event occurs, if do not occurred, then do not perform any operation; If occurred, then return step S2.
By step S7, be conducive to the data of the propelling movement event in local cache that upgrades in time when user reaches the standard grade at every turn and rolls off the production line, thus further ensure the accuracy and efficiency of off-line propel.
Correspondingly, present invention also offers a kind of device that can realize the local off-line propel of the implementation method of above-mentioned local off-line propel.The device of described local off-line propel comprises User Status judge module, pushes event judge module, cache module, spider module, engine Interface Module, Registering modules and pushing module;
Described User Status judge module, for judging that whether user is online, if it is online to judge to obtain user, then sends a decision instruction to the event of propelling movement judge module; If judge to obtain user's off-line, then send a traversal instruction to described spider module;
Described propelling movement event judge module, after receiving described decision instruction, judges whether propelling movement event occurs, if judge that obtaining propelling movement event occurs, then sends one and receives instruction to cache module, otherwise, do not perform any operation;
Described cache module, after receiving described reception instruction, receives and adds by the propelling movement event of server push;
Described spider module, after receiving described traversal instruction, travels through the propelling movement event be added in described cache module, and sends a link order to engine Interface Module;
Described engine Interface Module, after receiving described link order, connects described Registering modules and cache module, and sends a successful connection instruction to Registering modules;
Described Registering modules, after receiving described successful connection instruction, calls described engine Interface Module, and registers all propelling movement events in described cache module by engine Interface Module, and sends instruction at the beginning to pushing module;
Described pushing module, after receiving described sign on, pushes all propelling movement events.
Further, described cache module comprises cache sub-module and record sub module stored;
Described cache sub-module, after receiving described reception instruction, receives and adds by the propelling movement event of server push;
Described record sub module stored, pushes current time when propelling movement remaining time of event and each propelling movement event are added into cache sub-module for recording and preserving each;
And described spider module comprises Offtime record sub module, traversal submodule and refreshes submodule;
Described Offtime record sub module, after receiving described traversal instruction, local zone time when recording and preserve user's off-line, and send a refreshing instruction to refreshing submodule;
Described traversal submodule, after receiving traversal instruction, travels through the propelling movement event be added in described cache module, and sends a link order to engine Interface Module;
Described refreshing submodule, after receiving refreshing instruction, each current time pushing event and local zone time is obtained respectively from record sub module stored and Offtime record sub module, and by formula up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time calculates up-to-date propelling movement remaining time, realize pushing the renewal of up-to-date propelling movement remaining time of event to each and preserving;
And described pushing module comprise judge remaining time submodule, push submodule and delete submodule;
Described remaining time judges submodule, the up-to-date propelling movement remaining time of event is pushed for obtaining each refreshing in submodule, and judge to judge respectively whether the value that each pushes up-to-date propelling movement remaining time of event is greater than 0 respectively, if so, then send one not Tui Song instruction to pushing submodule; Otherwise, send a delete instruction to deleting submodule;
Described propelling movement submodule, after receiving described indivedual propelling movement instruction and sign on, pushes the propelling movement event that the up-to-date value pushing remaining time is greater than 0;
Described deletion submodule, after receiving delete instruction, deletes the up-to-date value pushing remaining time in described cache module and is less than or equal to the propelling movement event of 0.
Further, after the value of described propelling movement submodule also for completing up-to-date propelling movement remaining time being greater than the propelling movement of propelling movement event of 0, sending one and upgrading instruction to described refreshing submodule; Described refreshing submodule, also for after receiving described renewal instruction, upgrades the up-to-date propelling movement remaining time of all propelling movement events.
Further, the device of the local off-line propel of the present invention also comprises a removing module.The record sub module stored of described cache module is also for recording and preserving the propelling movement key that each pushes event; Whether described User Status judge module also again reaches the standard grade after judging user's off-line, and if so, then User Status judge module sends a delete instruction to described removing module; If not, then user continues off-line, then can send a traversal instruction to described spider module, or not perform any operation.Described removing module, after receiving the delete instruction that sent by User Status judge module, delete all chartered propelling movement events in cache sub-module according to the propelling movement key recorded in sub module stored, be less than or equal to the propelling movement event of 0 simultaneously according to the up-to-date propelling movement up-to-date value pushing remaining time of deleting in cache sub-module remaining time refreshed in submodule.
Device due to the local off-line propel of the present invention can realize the implementation method of the local off-line propel of the present invention, therefore the device of local off-line propel of the present invention has the above-mentioned technique effect of the implementation method of local off-line propel of the present invention.
Correspondingly, the present invention also provides a kind of system of local off-line propel, and it comprises the device of the local off-line propel described in server and above-mentioned any one; Described server is used for propelling movement event to be sent to device.
In order to understand better and implement, describe the present invention in detail below in conjunction with accompanying drawing.
Accompanying drawing explanation
Fig. 1 is the flow chart of the implementation method of local off-line propel of the present invention;
Fig. 2 is the flow chart of the implementation method of local off-line propel after step S2 described in Fig. 1, S4 and S6 improve;
Fig. 3 is the flow chart of implementation method of the local off-line propel after step S6 described in Fig. 2 improves further;
Fig. 4 is the flow chart of the implementation method of setting up step S7 and local off-line propel after improving further in Fig. 3;
Fig. 5 is the structured flowchart of the device of local off-line propel of the present invention;
Fig. 6 is the cache module of the device of local off-line propel of the present invention and the annexation structured flowchart with other module thereof;
Fig. 7 is the spider module of the device of local off-line propel of the present invention and the annexation structured flowchart with other module thereof;
Fig. 8 is the pushing module of the device of local off-line propel of the present invention and the annexation structured flowchart with other module thereof;
Fig. 9 is the structured flowchart after the device increase removing module of local off-line propel of the present invention.
Embodiment
In order to solve in prior art message push to the impact of the experience of online user, and online message pushes the burden caused server, the invention provides a kind of online by user time, propelling movement event is added in local cache and will not pushes, realize the method only just propelling movement event pushed when user's off-line, thereby enhance user online time operating experience, and alleviate the burden of server.Below, the implementation method of local off-line propel of the present invention is illustrated.
Refer to Fig. 1, a kind of implementation method of local off-line propel, comprises the following steps:
Step S1: judge that whether user is online; If user's off-line, then perform step S4 ~ step S6; If user is online, then judges whether propelling movement event occurs, if propelling movement event does not occur, then do not perform any operation; If the event of propelling movement occurs, continue to perform next step;
Step S2: receive propelling movement event and be added in local cache;
Step S3: continue to judge whether user goes back online, if user goes back online and the event of propelling movement continuation generation, then returns step S2; Otherwise, continue to perform next step:
Step S4: travel through all propelling movement events be added in local cache;
Step S5: call engine interface, registers all propelling movement events by engine interface;
Step S6: push all propelling movement events.
Further, in order to effectively distinguish the event completing propelling movement and the event not completing propelling movement, with avoid to push event repeat push, and upgrade in time locally buffered in propelling movement event, further realization propelling movement event off-line propel effectively, as a kind of more excellent technical scheme, the present invention carries out further perfect simultaneously to described step S2, described step S4 and described step S6, refer to Fig. 2:
A) the step S2 after improving comprises the following steps:
Step S21: receive propelling movement event and be added in local cache;
Step S22: record and preserve each and push current time when propelling movement remaining time of event and each propelling movement event are added into local cache.
B) the step S4 after improving comprises the following steps:
Step S41: local zone time when recording and preserve user's off-line;
Step S42: travel through all propelling movement events be added in local cache;
Step S43: upgrade respectively and preserve the up-to-date propelling movement remaining time that each pushes event, up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time.
C) the step S6 after improving is that the up-to-date propelling movement pushing event according to each pushes all propelling movement events remaining time respectively, and it specifically comprises the following steps:
Step S61: judge whether the up-to-date value pushing remaining time that each pushes event is greater than 0 respectively; If so, then the propelling movement event that the up-to-date value pushing remaining time is greater than 0 is pushed; Otherwise the up-to-date value pushing remaining time of deleting in local cache is less than or equal to the propelling movement event of 0.
In order to upgrade the up-to-date propelling movement remaining time of just pushed propelling movement event of going out further, thus the propelling movement event that guarantee in time has just pushed out can not be repeated to push, to improve the accuracy and efficiency of propelling movement further, as a kind of more excellent technical scheme, the present invention carries out further perfect to described step S6, refer to Fig. 3, step S6 after improving also comprises step S62: after the value completing up-to-date propelling movement remaining time is greater than the propelling movement of propelling movement event of 0, upgrade the up-to-date propelling movement remaining time of all propelling movement events.
In order to identify further each propelling movement event, and facilitate the deletion action of propelling movement event, as a kind of more excellent technical scheme, the step S22 in described step S2 also records and preserves the propelling movement key that each pushes event.
Further, in order to the data of the propelling movement event in local cache when the user that upgrades in time reaches the standard grade and rolls off the production line at every turn, thus improve the accuracy and efficiency of off-line propel further, as a kind of more excellent technical scheme, refer to Fig. 4, whether the implementation method of local off-line propel of the present invention also comprises step S7: again reach the standard grade after judging user's off-line;
If so, then delete all chartered propelling movement events according to propelling movement key, delete the up-to-date value pushing remaining time in local cache simultaneously and be less than or equal to the propelling movement event of 0, and return step S1;
If not, judge whether propelling movement event occurs, if do not occurred, then do not perform any operation; If occurred, then return step S2.
In actual applications, the different needs of planning are also met by invention of the present invention.Owing to there being all propelling movement events in local cache, then all propelling movement events in local cache can also be classified, make the propelling movement event sets of identical category in together, this application sentenced in game is described, if planning requires that the propelling movement event of same type only pushes once when player's off-line, as built the propelling movement event of upgrading and so on, then now can at player's off-line, when engine registers, other propelling movement event of identical type can be filtered out according to the requirement of planning, only retain one and carry out pushing.
Correspondingly, refer to Fig. 5, present invention also offers a kind of device that can realize the local off-line propel of the implementation method of above-mentioned local off-line propel.The device of described local off-line propel comprises User Status judge module 1, pushes event judge module 2, cache module 3, spider module 4, engine Interface Module 5, Registering modules 6 and pushing module 7.
Described User Status judge module 1, for judging that whether user is online, if it is online to judge to obtain user, then sends a decision instruction to the event of propelling movement judge module 2; If judge to obtain user's off-line, then send a traversal instruction to described spider module 4.
Described propelling movement event judge module 2, after receiving described decision instruction, judges whether propelling movement event occurs, if judge that obtaining propelling movement event occurs, then sends one and receives instruction to cache module 3, otherwise, do not perform any operation.
Described cache module 3, after receiving described reception instruction, receives and adds by the propelling movement event of server push.
Described spider module 4, after receiving described traversal instruction, travels through the propelling movement event be added in described cache module 3, and sends a link order to engine Interface Module 5.
Described engine Interface Module 5, after receiving described link order, connects described Registering modules 6 and cache module 3, and sends a successful connection instruction to Registering modules 6.
Described Registering modules 6, after receiving described successful connection instruction, calls described engine Interface Module 5, and registers all propelling movement events in described cache module 3 by engine Interface Module 5, and sends instruction at the beginning to pushing module 7.
Described pushing module 7, after receiving described sign on, pushes all propelling movement events.
Further, please refer to Fig. 6, described cache module 3 comprises cache sub-module 31 and record sub module stored 32.Described cache sub-module 31, after receiving described reception instruction, receives and adds by the propelling movement event of server push.Described record sub module stored 32, pushes current time when propelling movement remaining time of event and each propelling movement event are added into cache sub-module 31 for recording and preserving each.
Please refer to Fig. 7, described spider module 4 comprises Offtime record sub module 41, traversal submodule 42 and refreshes submodule 43.Described Offtime record sub module 41, after receiving described traversal instruction, local zone time when recording and preserve user's off-line, and send a refreshing instruction to refreshing submodule 43.Described traversal submodule 42, after receiving traversal instruction, travels through the propelling movement event be added in described cache module 3, and sends a link order to engine Interface Module 5.Described refreshing submodule 43, after receiving refreshing instruction, each current time pushing event and local zone time is obtained respectively from record sub module stored 32 and Offtime record sub module 41, and by formula up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time calculates up-to-date propelling movement remaining time, realize pushing the renewal of up-to-date propelling movement remaining time of event to each and preserving.
Please refer to Fig. 8, described pushing module 7 comprise judge remaining time submodule 71, push submodule 72 and delete submodule 73.Described remaining time judges submodule 71, the up-to-date propelling movement remaining time of event is pushed for obtaining each refreshing in submodule 43, and judge respectively to judge whether the up-to-date value pushing remaining time that each pushes event is greater than 0 respectively, if so, then send one and instruction extremely Tui Song not push submodule 72; Otherwise, send a delete instruction to deleting submodule 73.Described propelling movement submodule 72, after receiving described indivedual propelling movement instruction and sign on, pushes the propelling movement event that the up-to-date value pushing remaining time is greater than 0.Described deletion submodule 73, after receiving delete instruction, deletes the up-to-date value pushing remaining time in described cache module 3 and is less than or equal to the propelling movement event of 0.
Further, after the value of described propelling movement submodule 72 also for completing up-to-date propelling movement remaining time being greater than the propelling movement of propelling movement event of 0, sending one and upgrading instruction to described refreshing submodule 43; Described refreshing submodule 43, also for after receiving described renewal instruction, upgrades the up-to-date propelling movement remaining time of all propelling movement events.
Further, please refer to Fig. 9, the device of the local off-line propel of the present invention also comprises a removing module 8, and the record sub module stored 32 of described cache module 3 is also for recording and preserving the propelling movement key that each pushes event.And whether described User Status judge module 1 also again reaches the standard grade after judging user's off-line, if so, then User Status judge module 1 sends a delete instruction to described removing module 8; If not, then user continues off-line, then can send a traversal instruction to described spider module 4, or not perform any operation.Described removing module 8 is for after receiving the delete instruction that sent by User Status judge module 1, delete all chartered propelling movement events in cache sub-module 31 according to the propelling movement key recorded in sub module stored 32, be less than or equal to the propelling movement event of 0 simultaneously according to the up-to-date propelling movement up-to-date value pushing remaining time of deleting in cache sub-module 31 remaining time refreshed in submodule 43.
Correspondingly, the present invention also provides a kind of system of local off-line propel, and it comprises the device of the local off-line propel described in server and above-mentioned any one; Described server is used for propelling movement event to be sent to device.
Relative to prior art, the present invention realizes only just carrying out message push when user is not online, avoids the impact of message push on the experience of online user, thinks that user brings better experience; Identical message can be pushed at synchronization to all users by the client computer alternative server of all users simultaneously, be conducive to the burden alleviating server; Further, by using local cache to realize local off-line propel, the difference needs of planning can being met, filtering out the propelling movement event of identical type by imposing a condition.
The present invention is not limited to above-mentioned execution mode, if do not depart from the spirit and scope of the present invention to various change of the present invention or distortion, if these are changed and distortion belongs within claim of the present invention and equivalent technologies scope, then the present invention is also intended to comprise these changes and distortion.

Claims (10)

1. an implementation method for local off-line propel, is characterized in that: comprise the following steps:
Step S1: judge that whether user is online; If user's off-line, then perform step S4 ~ step S6; If user is online, then judges whether propelling movement event occurs, if propelling movement event does not occur, then do not perform any operation; If the event of propelling movement occurs, continue to perform next step;
Step S2: receive propelling movement event and be added in local cache;
Step S3: continue to judge whether user goes back online, if user goes back online and the event of propelling movement continuation generation, then returns step S2; Otherwise, continue to perform next step:
Step S4: travel through all propelling movement events be added in local cache;
Step S5: call engine interface, registers all propelling movement events by engine interface;
Step S6: push all propelling movement events.
2. method according to claim 1, is characterized in that:
Described step S2 also comprises step:
Record and preserve each and push current time when propelling movement remaining time of event and each propelling movement event are added into local cache;
And described step S4 also comprises step:
Local zone time when recording and preserve user's off-line;
Upgrade respectively and preserve the up-to-date propelling movement remaining time that each pushes event, up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time;
And be that the up-to-date propelling movement pushing event according to each pushes all propelling movement events remaining time respectively in described step S6, it specifically comprises the following steps:
Judge whether the up-to-date value pushing remaining time that each pushes event is greater than 0 respectively; If so, then the propelling movement event that the up-to-date value pushing remaining time is greater than 0 is pushed; Otherwise the up-to-date value pushing remaining time of deleting in local cache is less than or equal to the propelling movement event of 0.
3. method according to claim 2, is characterized in that: described step S6 also comprises step: after the value completing up-to-date propelling movement remaining time is greater than the propelling movement of propelling movement event of 0, upgrade the up-to-date propelling movement remaining time of all propelling movement events.
4. method according to claim 3, is characterized in that: also record in described step S2 and preserve the propelling movement key that each pushes event.
5. whether method according to claim 4, is characterized in that: also comprise step S7: again reach the standard grade after judging user's off-line;
If so, then delete all chartered propelling movement events according to propelling movement key, delete the up-to-date value pushing remaining time in local cache simultaneously and be less than or equal to the propelling movement event of 0, and return step S1;
If not, judge whether propelling movement event occurs, if do not occurred, then do not perform any operation; If occurred, then return step S2.
6. a device for local off-line propel, is characterized in that: comprise User Status judge module, push event judge module, cache module, spider module, engine Interface Module, Registering modules and pushing module;
Described User Status judge module, for judging that whether user is online, if it is online to judge to obtain user, then sends a decision instruction to the event of propelling movement judge module; If judge to obtain user's off-line, then send a traversal instruction to described spider module;
Described propelling movement event judge module, after receiving described decision instruction, judges whether propelling movement event occurs, if judge that obtaining propelling movement event occurs, then sends one and receives instruction to cache module, otherwise, do not perform any operation;
Described cache module, after receiving described reception instruction, receives and adds by the propelling movement event of server push;
Described spider module, after receiving described traversal instruction, travels through the propelling movement event be added in described cache module, and sends a link order to engine Interface Module;
Described engine Interface Module, after receiving described link order, connects described Registering modules and cache module, and sends a successful connection instruction to Registering modules;
Described Registering modules, after receiving described successful connection instruction, calls described engine Interface Module, and registers all propelling movement events in described cache module by engine Interface Module, and sends instruction at the beginning to pushing module;
Described pushing module, after receiving described sign on, pushes all propelling movement events.
7. device according to claim 6, is characterized in that:
Described cache module comprises cache sub-module and record sub module stored;
Described cache sub-module, after receiving described reception instruction, receives and adds by the propelling movement event of server push;
Described record sub module stored, pushes current time when propelling movement remaining time of event and each propelling movement event are added into cache sub-module for recording and preserving each;
And described spider module comprises Offtime record sub module, traversal submodule and refreshes submodule;
Described Offtime record sub module, after receiving described traversal instruction, local zone time when recording and preserve user's off-line, and send a refreshing instruction to refreshing submodule;
Described traversal submodule, after receiving traversal instruction, travels through the propelling movement event be added in described cache module, and sends a link order to engine Interface Module;
Described refreshing submodule, after receiving refreshing instruction, each current time pushing event and local zone time is obtained respectively from record sub module stored and Offtime record sub module, and by formula up-to-date propelling movement remaining time=propelling movement remaining time-current time-local zone time calculates up-to-date propelling movement remaining time, realize pushing the renewal of up-to-date propelling movement remaining time of event to each and preserving;
And described pushing module comprise judge remaining time submodule, push submodule and delete submodule;
Described remaining time judges submodule, the up-to-date propelling movement remaining time of event is pushed for obtaining each refreshing in submodule, and judge to judge respectively whether the value that each pushes up-to-date propelling movement remaining time of event is greater than 0 respectively, if so, then send one not Tui Song instruction to pushing submodule; Otherwise, send a delete instruction to deleting submodule;
Described propelling movement submodule, after receiving described indivedual propelling movement instruction and sign on, pushes the propelling movement event that the up-to-date value pushing remaining time is greater than 0;
Described deletion submodule, after receiving delete instruction, deletes the up-to-date value pushing remaining time in described cache module and is less than or equal to the propelling movement event of 0.
8. device according to claim 7, is characterized in that:
After the value of described propelling movement submodule also for completing up-to-date propelling movement remaining time being greater than the propelling movement of propelling movement event of 0, sending one and upgrading instruction to described refreshing submodule;
Described refreshing submodule, also for after receiving described renewal instruction, upgrades the up-to-date propelling movement remaining time of all propelling movement events.
9. device according to claim 8, is characterized in that: also comprise a removing module;
The record sub module stored of described cache module is also for recording and preserving the propelling movement key that each pushes event;
Whether described User Status judge module also again reaches the standard grade after judging user's off-line, and if so, then User Status judge module sends a delete instruction to described removing module; If not, then user continues off-line, then can send a traversal instruction to described spider module, or not perform any operation;
Described removing module, after receiving the delete instruction that sent by User Status judge module, delete all chartered propelling movement events in cache sub-module according to the propelling movement key recorded in sub module stored, be less than or equal to the propelling movement event of 0 simultaneously according to the up-to-date propelling movement up-to-date value pushing remaining time of deleting in cache sub-module remaining time refreshed in submodule.
10. a system for local off-line propel, is characterized in that: the device comprising server and the local off-line propel as described in any one of claim 6 ~ 9; Described server is used for propelling movement event to be sent to device.
CN201510943747.5A 2015-11-09 2015-12-16 A kind of implementation method that local pushes offline, apparatus and system Active CN105577762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510943747.5A CN105577762B (en) 2015-11-09 2015-12-16 A kind of implementation method that local pushes offline, apparatus and system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201510760941X 2015-11-09
CN201510760941 2015-11-09
CN201510943747.5A CN105577762B (en) 2015-11-09 2015-12-16 A kind of implementation method that local pushes offline, apparatus and system

Publications (2)

Publication Number Publication Date
CN105577762A true CN105577762A (en) 2016-05-11
CN105577762B CN105577762B (en) 2018-11-13

Family

ID=55887406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510943747.5A Active CN105577762B (en) 2015-11-09 2015-12-16 A kind of implementation method that local pushes offline, apparatus and system

Country Status (1)

Country Link
CN (1) CN105577762B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790454A (en) * 2016-12-07 2017-05-31 努比亚技术有限公司 Deferred information method for pushing and device
CN108416006A (en) * 2018-02-28 2018-08-17 百度在线网络技术(北京)有限公司 Information off-line recommends method, apparatus, client, server and storage medium
CN111901366A (en) * 2019-05-06 2020-11-06 广州市百果园信息技术有限公司 Data pushing method, device, equipment and storage medium
CN112206509A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 System and method for dynamically sending notification according to server state

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252079A1 (en) * 2010-04-07 2011-10-13 Jeremy Matthew Werner Apparatus and Method For Inviting Users To Online Sessions
CN103327039A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Method and device and system for pushing messages
CN103391307A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Off-line transparent-transmitting and display method, device and system for off-line data
CN103634409A (en) * 2013-12-12 2014-03-12 中国联合网络通信集团有限公司 Method and system for realizing always-online internet application
CN104065565A (en) * 2014-06-12 2014-09-24 北京奇虎科技有限公司 Information pushing method, server, client-side device and system
CN104462594A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 Method and device for providing user personalized resource message pushing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252079A1 (en) * 2010-04-07 2011-10-13 Jeremy Matthew Werner Apparatus and Method For Inviting Users To Online Sessions
CN103327039A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Method and device and system for pushing messages
CN103391307A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Off-line transparent-transmitting and display method, device and system for off-line data
CN103634409A (en) * 2013-12-12 2014-03-12 中国联合网络通信集团有限公司 Method and system for realizing always-online internet application
CN104065565A (en) * 2014-06-12 2014-09-24 北京奇虎科技有限公司 Information pushing method, server, client-side device and system
CN104462594A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 Method and device for providing user personalized resource message pushing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790454A (en) * 2016-12-07 2017-05-31 努比亚技术有限公司 Deferred information method for pushing and device
CN108416006A (en) * 2018-02-28 2018-08-17 百度在线网络技术(北京)有限公司 Information off-line recommends method, apparatus, client, server and storage medium
CN108416006B (en) * 2018-02-28 2019-10-08 百度在线网络技术(北京)有限公司 Information off-line recommended method, device, client, server and storage medium
CN111901366A (en) * 2019-05-06 2020-11-06 广州市百果园信息技术有限公司 Data pushing method, device, equipment and storage medium
CN111901366B (en) * 2019-05-06 2023-08-29 广州市百果园信息技术有限公司 Data pushing method, device, equipment and storage medium
CN112206509A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 System and method for dynamically sending notification according to server state

Also Published As

Publication number Publication date
CN105577762B (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN105577762A (en) Local offline push realization method, apparatus and system
CN104796439B (en) Web page push method, client, server and system
US11748389B1 (en) Delegated decision tree evaluation
US20160182627A1 (en) Application hibernation
US20230033804A1 (en) Information sharing chain generation method and apparatus, electronic device, and storage medium
WO2021121091A1 (en) Data processing method and apparatus, and storage medium and terminal
CN103714141A (en) Information pushing method and device
CN105808733A (en) Display method and apparatus
CN109543154B (en) Type conversion method and device of table data, storage medium and electronic equipment
CN107197359A (en) Video file caching method and device
CN103546771A (en) Television program review processing method and system based on smart terminal
CN110413413A (en) A kind of method for writing data, device, equipment and storage medium
CN111259066A (en) Server cluster data synchronization method and device
CN111538772B (en) Data exchange processing method and device, electronic equipment and storage medium
CN103746904A (en) Information interaction method and device
WO2016022857A1 (en) Services access for mobile devices
CN110019786A (en) Topic sending method, the topic list ordering method and device of Web Community
CN104158696A (en) Determination method and device for measuring delayed operation time and terminal
CN115495519A (en) Report data processing method and device
CN109389271A (en) Application performance management method and system
CN106127517A (en) The update method of a kind of advertisement putting plan version and device
CN113609390A (en) Information analysis method and device, electronic equipment and computer readable storage medium
CN106375825A (en) Picture generation processing method and apparatus, and picture display processing method and apparatus
CN112947853A (en) Data storage method, apparatus, server, medium, and program product
CN110336883A (en) Mirror image data transmission method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510000 3, 1 building, 90 ho he road, Luogang District, Guangzhou, Guangdong.

Applicant after: Guangzhou Duoyi Network Co., Ltd.

Address before: 510000 3, 1 building, 90 ho he road, Luogang District, Guangzhou, Guangdong.

Applicant before: Guangzhou Baiyun Bio-Tech Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant