CN106250246A - A kind of method and system of event transmission - Google Patents
A kind of method and system of event transmission Download PDFInfo
- Publication number
- CN106250246A CN106250246A CN201610589958.8A CN201610589958A CN106250246A CN 106250246 A CN106250246 A CN 106250246A CN 201610589958 A CN201610589958 A CN 201610589958A CN 106250246 A CN106250246 A CN 106250246A
- Authority
- CN
- China
- Prior art keywords
- event
- observer
- class
- observed
- chained list
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to transfer source field, particularly relate to the method and system of a kind of event transmission.The present invention, by inheriting observer's template class, obtains observer's class;Event handling function is rewritten at described observer's apoplexy due to endogenous wind;Create observer's chained list;The ID of described observer's chained list is identical with the ID of described observed event;Add the observer class relevant to described observed event to described observer's chained list;Described observed event is sent to event queue;Described event queue includes main thread event queue and worker thread event queue;Distribute the described observed event in described event queue to the observer's class in described observer's chained list;Described event handling function processes described observed event.Achieve and transmit event at intermodule efficiently and the coupling of intermodule can be reduced.
Description
Technical field
The present invention relates to transfer source field, particularly relate to the method and system of a kind of event transmission.
Background technology
In prior art, the event notice transmission method between functional module mainly has following two: one is to pre-set
The call back function of intermodule.Owing to call back function is static function or overall situation function, and function prototype is all fixing, so
The transmission that result in event argument and class object becomes to limit to very much, it is achieved cumbersome and code readability are poor;Another kind is
The mode utilizing class interface or class members's function to entrust carries out event transmission, although this problem solving the former, but
These modes are all directly directly to give caller in the way of trust class example and member function, say, that caller exists
The when that readjustment being entrusted, need to be concerned about that this trust object is the most destroyed, cause the maintenance of intermodule to become pretty troublesome.And not
Managing the former or the latter, along with increasing service logic needs to process, there is substantial amounts of message communicating in module, these cause
Serious code coupled problem.
The patent documentation " intermodule message passing mechanism based on event bus " of Application No. 201410551054.7 is public
Open the message delivery method of a kind of difference in functionality intermodule, by realizing the subscription function of various event at subscriber's apoplexy due to endogenous wind also
Being labeled, subscriber is to event bus registered events;After event bus carries out event registration, find out registration by reflex mechanism
The subscription function being marked in object, generates subscriber's object;With subscription event as key, safeguard Subscriber Information with map,
Described Subscriber Information includes subscriber's object, callback events function and event type;Subscriber couple is analyzed by reflex mechanism
As, determine event executive mode according to the Method name of callback events function readjustment and travel through map and carry out case distribution.Solve
The problem that in existing soft program process, intermodule coupling is serious.
Above-mentioned intermodule message passing mechanism based on event bus, although the problem improving intermodule coupling, but
The method is the mode explained based on Java, is then obtained the call back function of event subscription person, the effect of message transmission by reflection
Rate is relatively low.
Summary of the invention
The technical problem to be solved is: the present invention provides the method and system that a kind of event is transmitted, it is achieved high
Effect ground transmits event at intermodule and can reduce the coupling of intermodule.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is:
The present invention provides a kind of method that event is transmitted, including:
Inherit observer's template class, obtain observer's class;Described observer's template class includes main thread observer's template class
With worker thread observer's template class, observer's class of succession main thread observer's template class is called at main thread and is seen accordingly
Examining event, observer's class of inheritance work thread observer's template class calls corresponding observed event at worker thread;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;The ID of described observer's chained list is identical with the ID of described observed event;
Add the observer class relevant to described observed event to described observer's chained list;
Described observed event is sent to event queue;Described event queue includes main thread event queue and active line
Journey event queue;
Distribute the described observed event in described event queue to the observer's class in described observer's chained list;
Described event handling function processes described observed event.
The present invention also provides for the system of a kind of event transmission, including:
Inherit module, be used for inheriting observer's template class, obtain observer's class;Described observer's template class includes main thread
Observer's template class and worker thread observer's template class, the observer's class inheriting main thread observer's template class is adjusted at main thread
By corresponding observed event, observer's class of inheritance work thread observer's template class is called at worker thread and is seen accordingly
Examine event;
Rewrite module, for rewriteeing event handling function at described observer's apoplexy due to endogenous wind;
Creation module, is used for creating observer's chained list;The ID phase of the ID of described observer's chained list and described observed event
With;
Add module, for adding the observer class relevant to described observed event to described observer's chained list;
Sending module, for sending described observed event to event queue;Described event queue includes main thread thing
Part queue and worker thread event queue;
Distribution module, for distributing the described observed event in described event queue to the sight in described observer's chained list
The person's of examining class;
Processing module, processes described observed event for described event handling function.
The beneficial effects of the present invention is: obtain observer's class by inheriting observer's template class, it is achieved be quickly created
The observer's class worked in main thread and the observer's class worked in worker thread, for some relatively time-consuming events of ratio,
Worker thread processes to reduce and takies the resource of main thread thus improve Consumer's Experience;Rewrite according to observed event and see
The event handling function of the person's of examining apoplexy due to endogenous wind, this event handling function can directly receive the example of observed event, improve intermodule
The efficiency of message transmission;Binding observed event and relevant observer's class by observer's chained list, an observed event can
Bind multiple observer's class, the relation between observed event and observer's class can be safeguarded easily by observer's chained list, this
Outward, observed case distribution can be given relevant observer's class by chained list by system according to the observation, thus reduces the coupling of intermodule
Conjunction property.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the method for a kind of event of present invention transmission;
Fig. 2 is the structured flowchart of the system of a kind of event of present invention transmission;
Fig. 3 is the FB(flow block) of the embodiment one of the method for a kind of event of present invention transmission;
Fig. 4 is the FB(flow block) of the embodiment two of the method for a kind of event of present invention transmission;
Fig. 5 is the FB(flow block) of the embodiment three of the method for a kind of event of present invention transmission;
Label declaration:
1, module is inherited;2, module is rewritten;3, creation module;4, module is added;5, sending module;6, distribution module;7、
Processing module.
Detailed description of the invention
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate attached
Figure is explained.
The design of most critical of the present invention is: obtain observer's class by inheriting observer's template class, it is achieved create rapidly
It build the observer's class worked in main thread and the observer's class worked in worker thread in;Rewrite according to observed event and observe
The event handling function of person's apoplexy due to endogenous wind, improves the efficiency of intermodule message transmission;Observed event is bound by observer's chained list
To relevant observer's class so that observed case distribution can be given relevant observer's class by chained list by system according to the observation, from
And reduce the coupling of intermodule.
Refer to Fig. 1 to Fig. 5,
As it is shown in figure 1, the present invention provides a kind of method that event is transmitted, including:
Inherit observer's template class, obtain observer's class;Described observer's template class includes main thread observer's template class
With worker thread observer's template class, observer's class of succession main thread observer's template class is called at main thread and is seen accordingly
Examining event, observer's class of inheritance work thread observer's template class calls corresponding observed event at worker thread;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;The ID of described observer's chained list is identical with the ID of described observed event;
Add the observer class relevant to described observed event to described observer's chained list;
Described observed event is sent to event queue;Described event queue includes main thread event queue and active line
Journey event queue;
Distribute the described observed event in described event queue to the observer's class in described observer's chained list;
Described event handling function processes described observed event.
Further, described observed event is sent to event queue, particularly as follows:
Judge that described observed event processes the need of at main thread;
The most then the example of described observed event is sent to main thread event queue;Otherwise,
The example of described observed event is sent to worker thread event queue.
Seen from the above description, it is processed as foundation with observed event the need of at main thread, observed event is sent out
Deliver to main thread event queue or worker thread event queue, follow-up different observed events is carried out different tune
Degree and management.
Further, described observed event is sent to event queue, particularly as follows:
Copy the example of observed event, obtain copying example;
Judge that described observed event processes the need of at main thread;
The most described copy example is sent to main thread event queue;Otherwise,
Described copy example is sent to worker thread event queue.
Seen from the above description, the example of the observed event of copy is sent to event queue, desirably prevents to be seen
Examine the example of event destroyed after lose significant data, improve the reliability in event transmittance process.
Further, the described observed event in described event queue is distributed to the observer in described observer's chained list
Class, particularly as follows:
Obtain the example of observed event in described main thread event queue, obtain the first event instance;
Obtain the observer chained list corresponding with described first event instance, obtain first observer's chained list;
Obtain the example of observer's class in first observer's chained list, obtain first observer's example;
Described first event instance is sent to first observer's example.
Seen from the above description, the example of the observed event in main thread event queue can be sent to observer's chained list
The example of associated viewers's class of middle record.
Further, the described observed event in described event queue is distributed to the observer in described observer's chained list
Class, also includes:
Obtain the example of observed event in described worker thread event queue, obtain second event example;
Obtain the observer chained list corresponding with described second event example, obtain second observer's chained list;
Obtain the example of observer's class in second observer's chained list, obtain second observer's example;
Judge whether worker thread is in idle condition;
The most described second event example is sent to second observer's example.
Seen from the above description, the observed event in worker thread event queue typically provides than relatively time-consuming or the system that takies
Source is big, therefore, during the example of the observed event in obtaining worker thread event queue, first judges whether worker thread is in
Idle condition, described idle condition refers mainly to the example whether having enough resources can process this observed event, determines work
After thread is in idle condition, the example of observed event is sent to the example of corresponding observer's class, desirably prevents
There is situation about blocking in worker thread.
Further, also include:
Cancel the described observer's class of binding and described observed event.
Further, described in cancel binding described observer's class and described observed event, particularly as follows:
Described observer's class is deleted from observer's chained list corresponding with described observed event.
Seen from the above description, revocable binding observer's class and observed event, improve observer's class and observed
The motility of corresponding relation between event.
As in figure 2 it is shown, the present invention also provides for the system of a kind of event transmission, including:
Inherit module 1, be used for inheriting observer's template class, obtain observer's class;Described observer's template class includes main line
Journey observer's template class and worker thread observer's template class, inherit observer's class of main thread observer's template class at main thread
Calling corresponding observed event, observer's class of inheritance work thread observer's template class calls quilt accordingly at worker thread
Observation event;
Rewrite module 2, for rewriteeing event handling function at described observer's apoplexy due to endogenous wind;
Creation module 3, is used for creating observer's chained list;The ID phase of the ID of described observer's chained list and described observed event
With;
Add module 4, for adding the observer class relevant to described observed event to described observer's chained list;
Sending module 5, for sending described observed event to event queue;Described event queue includes main thread thing
Part queue and worker thread event queue;
Distribution module 6, for distributing the described observed event in described event queue in described observer's chained list
Observer's class;
Processing module 7, processes described observed event for described event handling function.
As it is shown on figure 3, embodiments of the invention one are:
Inherit main thread observer's template class, obtain observer's class;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;
Add the observer class relevant to described observed event to described observer's chained list;
Judge that described observed event processes the need of at main thread;
The example of described observed event is sent to main thread event queue;
Obtain the example of observed event in described main thread event queue, obtain the first event instance;
Obtain the observer chained list corresponding with described first event instance, obtain first observer's chained list;
Obtain the example of observer's class in first observer's chained list, obtain first observer's example;
Described first event instance is sent to first observer's example;
Event handling function in described first observer's example processes described first event instance.
Seen from the above description, embodiments of the invention one achieve the sight that the example of observed event passes to be correlated with
Event handling function in the example of the person's of examining class, and the example of observer's class processes the reality of this observed event at main thread
Example.
As described in Figure 4, embodiments of the invention two are:
Inherit main thread observer's template class, obtain observer's class;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;
Add the observer class relevant to described observed event to described observer's chained list;
Copy the example of observed event, obtain copying example;
Judge that described observed event processes the need of at main thread;
Described copy example is sent to main thread event queue;
Obtain the copy example in described main thread event queue, obtain the first event instance;
Obtain the observer chained list corresponding with described first event instance, obtain first observer's chained list;
Obtain the example of observer's class in first observer's chained list, obtain first observer's example;
Described first event instance is sent to first observer's example;
Event handling function in described first observer's example processes described first event instance.
Seen from the above description, compared with embodiments of the invention one, embodiments of the invention two first copy observed thing
The example of part, and the copy example of observed event is sent to main thread event queue, thus effectively prevent should be improper
Operation or thunder bolt destroy the example of observed event, and lose significant data, and improve in event transmittance process is reliable
Property.
As it is shown in figure 5, embodiments of the invention three are:
Inheritance work thread observer's template class, obtains observer's class;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;
Add the observer class relevant to described observed event to described observer's chained list;
Judge that described observed event processes the need of at main thread;
The example of described observed event is sent to worker thread event queue;
Obtain the example of observed event in described worker thread event queue, obtain second event example;
Obtain the observer chained list corresponding with described second event example, obtain second observer's chained list;
Obtain the example of observer's class in second observer's chained list, obtain second observer's example;
Judge whether worker thread is in idle condition;
The most described second event example is sent to second observer's example;
Event handling function in described second observer's example processes described second event example.
Seen from the above description, compared with embodiments of the invention one, the observed event in the present embodiment needs in work
Make thread processes, owing to this type of observed event is the most relatively time-consuming or it is big to take stock number, the most first judge corresponding work
Whether thread is in idle condition, then the example of this type of observed event is sent to the example of corresponding observer's class.So
Do the burden that can alleviate main thread, accelerate the processing procedure of critical event, thus improve Consumer's Experience.
Embodiments of the invention four are:
The application scenarios of the present embodiment is: user by account and password login to account number center, after having logged in, currently
The interface display pet name, the personal information such as head portrait.
Comprising two observed events in this application scenarios, they are: logging request event and personal information obtain event.
Also comprising two observer's classes in this application scenarios, they are: customer center observer's class and showing interface observer's class.Its
In, customer center observer's class observes logging request event, and logging request event obtains the username and password of user, Yong Huzhong
Heart observer's class carries out register according to username and password;Showing interface observer's class is observed personal information and is obtained event,
After user logins successfully, personal information obtains event and obtains the ID of user, the pet name and head portrait path, and showing interface is observed
Person's class is according to ID, the pet name and displaying interface, head portrait path.
Event handling function is rewritten at customer center observer's apoplexy due to endogenous wind, owing to register need to complete at main thread, therefore should
Customer center observer's Similar integral is from main thread Observer plate class, for processing the example of logging request event.User bound
Center observer's class and logging request event, particularly as follows: search whether the observer chained list consistent with logging request event id
ID, if having, then directly inserts in this observer's chained list by customer center observer's class, otherwise, with logging request event id for seeing
The ID of the person's of examining chained list, creates new observer's chained list, and customer center observer's class is inserted in this observer's chained list.
Owing to the username and password information of user is the most important, can not lose, therefore first copy the example of logging request event, then will step on
The copy example of record request event is sent to main thread event queue by Windows operating system distinctive window message mechanism
In.The copy example of logging request event is sent to customer center observer's class, calls the event of customer center observer's class
Process function and process the copy example of logging request event, perform register.To cancel user bound center observer's class
With logging request event, then customer center observer's class is deleted from observer's chained list corresponding with logging request event.
Event handling function is rewritten, owing to showing interface operation ratio is relatively time-consuming, therefore in work at showing interface observer's apoplexy due to endogenous wind
Making to complete this operation in thread, therefore this showing interface observer's Similar integral is from worker thread observer's template class, is used for processing
Personal information obtains the example of event.Showing interface observer's class is added and obtains the corresponding observer of event to personal information
In chained list.By Windows operating system distinctive window message mechanism, personal information is obtained the example transmission of event to work
Make in thread events queue.Treating that corresponding worker thread is in idle condition, the example that personal information obtains event is sent to
Showing interface observer's class, the event handling function calling showing interface observer's class processes the reality of personal information acquisition event
Example, shows interface.
Seen from the above description, the present embodiment is by observer's chained list binding logging request event and customer center observer
Class, personal information obtains event and showing interface observer's class, thus reduces the coupling between event and observer's class;
Separately, can close by observer's class being deleted from observer's chained list that corresponding event is corresponding the binding releasing observer's class and event
System, improves the motility of corresponding relation between observer's class and event.
In sum, the method and system of a kind of event transmission that the present invention provides, obtain by inheriting observer's template class
To observer's class, it is achieved be quickly created the observer's class worked in main thread and the observer worked in worker thread
Class, for some relatively time-consuming events of ratio, processes to reduce in worker thread and takies the resource of main thread thus improve use
Family is experienced;According to observed event rewrite observer's apoplexy due to endogenous wind event handling function, this event handling function can directly receive by
The example of observation event, improves the efficiency of intermodule message transmission;Observed thing can be safeguarded easily by observer's chained list
Relation between part and observer's class, and observed case distribution can be given relevant observer by chained list by system according to the observation
Class, thus reduce the coupling of intermodule;Further, use different event queues to receive to need to process in main thread
The example of observed event and need the example of observed event processed in worker thread, follow-up to different
Observed event instance carries out different scheduling and management;Further, copy the example of observed event, desirably prevent by
Lose significant data after the example of observation event is destroyed, improve the reliability in event transmittance process;Further, obtaining
The example of observed event in worker thread event queue time, first judge whether worker thread is in idle condition, determine
After worker thread is in idle condition, the example of observed event is sent to the example of corresponding observer's class, is conducive to anti-
Only there is situation about blocking in worker thread;Further, revocable binding observer's class and observed event, improve observer
The motility of corresponding relation between class and observed event.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention, every utilize this
The equivalents that bright description and accompanying drawing content are made, or directly or indirectly it is used in relevant technical field, the most in like manner include
In the scope of patent protection of the present invention.
Claims (10)
1. the method for an event transmission, it is characterised in that including:
Inherit observer's template class, obtain observer's class;Described observer's template class includes main thread observer's template class and work
Making thread observer's template class, the observer's class inheriting main thread observer's template class calls corresponding observed thing at main thread
Part, observer's class of inheritance work thread observer's template class calls corresponding observed event at worker thread;
Event handling function is rewritten at described observer's apoplexy due to endogenous wind;
Create observer's chained list;The ID of described observer's chained list is identical with the ID of described observed event;
Add the observer class relevant to described observed event to described observer's chained list;
Described observed event is sent to event queue;Described event queue includes main thread event queue and worker thread thing
Part queue;
Distribute the described observed event in described event queue to the observer's class in described observer's chained list;
Described event handling function processes described observed event.
The method of event the most according to claim 1 transmission, it is characterised in that described observed event is sent to event
Queue, particularly as follows:
Judge that described observed event processes the need of at main thread;
The most then the example of described observed event is sent to main thread event queue;Otherwise,
The example of described observed event is sent to worker thread event queue.
The method of event the most according to claim 1 transmission, it is characterised in that described observed event is sent to event
Queue, particularly as follows:
Copy the example of observed event, obtain copying example;
Judge that described observed event processes the need of at main thread;
The most described copy example is sent to main thread event queue;Otherwise,
Described copy example is sent to worker thread event queue.
The method of event the most according to claim 1 transmission, it is characterised in that distribute the described quilt in described event queue
Observation event gives the observer's class in described observer's chained list, particularly as follows:
Obtain the example of observed event in described main thread event queue, obtain the first event instance;
Obtain the observer chained list corresponding with described first event instance, obtain first observer's chained list;
Obtain the example of observer's class in first observer's chained list, obtain first observer's example;
Described first event instance is sent to first observer's example.
The method of event the most according to claim 1 transmission, it is characterised in that distribute the described quilt in described event queue
Observation event gives the observer's class in described observer's chained list, also includes:
Obtain the example of observed event in described worker thread event queue, obtain second event example;
Obtain the observer chained list corresponding with described second event example, obtain second observer's chained list;
Obtain the example of observer's class in second observer's chained list, obtain second observer's example;
Judge whether worker thread is in idle condition;
The most described second event example is sent to second observer's example.
The method of event the most according to claim 1 transmission, it is characterised in that also include:
Cancel the described observer's class of binding and described observed event.
Event the most according to claim 6 transmission method, it is characterised in that described in cancel binding described observer's class with
Described observed event, particularly as follows:
Described observer's class is deleted from observer's chained list corresponding with described observed event.
8. the system of an event transmission, it is characterised in that including:
Inherit module, be used for inheriting observer's template class, obtain observer's class;Described observer's template class includes that main thread is observed
Person's template class and worker thread observer's template class, the observer's class inheriting main thread observer's template class calls phase at main thread
The observed event answered, observer's class of inheritance work thread observer's template class calls corresponding observed thing at worker thread
Part;
Rewrite module, for rewriteeing event handling function at described observer's apoplexy due to endogenous wind;
Creation module, is used for creating observer's chained list;The ID of described observer's chained list is identical with the ID of described observed event;
Add module, for adding the observer class relevant to described observed event to described observer's chained list;
Sending module, for sending described observed event to event queue;Described event queue includes main thread event team
Row and worker thread event queue;
Distribution module, for distributing the described observed event in described event queue to the observer in described observer's chained list
Class;
Processing module, processes described observed event for described event handling function.
The system of event the most according to claim 8 transmission, it is characterised in that described sending module includes:
Copy cell, for copying the example of observed event, obtains copying example;
First judging unit, is used for judging that described observed event processes the need of at main thread;
First transmitting element, for sending described copy example to main thread event queue;
Second transmitting element, for sending described copy example to worker thread event queue;
3rd transmitting element, for sending the example of described observed event to main thread event queue;
4th transmitting element, for sending the example of described observed event to worker thread event queue.
The system of event the most according to claim 8 transmission, it is characterised in that described distribution module includes:
First acquiring unit, for obtaining the example of the observed event in described main thread event queue, obtains the first event
Example;
Second acquisition unit, for obtaining the observer chained list corresponding with described first event instance, obtains the first observer
Chained list;
3rd acquiring unit, for obtaining the example of the observer's class in first observer's chained list, obtains first observer's example;
5th transmitting element, for being sent to first observer's example by described first event instance;
4th acquiring unit, for obtaining the example of the observed event in described worker thread event queue, obtains the second thing
Part example;
5th acquiring unit, for obtaining the observer chained list corresponding with described second event example, obtains the second observer
Chained list;
6th acquiring unit, for obtaining the example of the observer's class in second observer's chained list, obtains second observer's example;
Second judging unit, is used for judging whether worker thread is in idle condition;
6th transmitting element, for being sent to second observer's example by described second event example.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589958.8A CN106250246B (en) | 2016-07-25 | 2016-07-25 | A kind of method and system of event transmitting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589958.8A CN106250246B (en) | 2016-07-25 | 2016-07-25 | A kind of method and system of event transmitting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106250246A true CN106250246A (en) | 2016-12-21 |
CN106250246B CN106250246B (en) | 2019-11-08 |
Family
ID=57603837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610589958.8A Active CN106250246B (en) | 2016-07-25 | 2016-07-25 | A kind of method and system of event transmitting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250246B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107783849A (en) * | 2017-09-27 | 2018-03-09 | 武汉斗鱼网络科技有限公司 | Event-handling method and client |
CN108762943A (en) * | 2018-03-22 | 2018-11-06 | 武汉斗鱼网络科技有限公司 | Obtain method, terminal device and the storage medium of the internal realization process of notice |
CN108958717A (en) * | 2018-06-28 | 2018-12-07 | 深圳数字动能信息技术有限公司 | C++ event bus implementation method |
CN109254819A (en) * | 2018-08-30 | 2019-01-22 | 深圳大势智能科技有限公司 | Interface updating method, system, equipment and storage medium based on android system |
CN109308202A (en) * | 2018-09-13 | 2019-02-05 | 武汉斗鱼网络科技有限公司 | A kind of method and mobile terminal linking barrage |
CN109460308A (en) * | 2018-11-13 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of event-handling method, system, device and computer readable storage medium |
CN109471736A (en) * | 2018-09-14 | 2019-03-15 | 叮联信息技术有限公司 | Event information uninterruptedly transmits at random and Real-Time Sharing method |
CN110018910A (en) * | 2018-01-08 | 2019-07-16 | 武汉斗鱼网络科技有限公司 | Enrollment implementation method, storage medium, equipment and the system of event bus |
CN110769018A (en) * | 2018-07-27 | 2020-02-07 | 北京国双科技有限公司 | Message pushing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101256505A (en) * | 2007-03-02 | 2008-09-03 | 中国科学院声学研究所 | Single process contents server device and method based on IO event notification mechanism |
CN103309752A (en) * | 2013-05-22 | 2013-09-18 | 北京奇虎科技有限公司 | Method and system for communication between components and communication processor |
CN103780678A (en) * | 2013-12-27 | 2014-05-07 | 北京天融信软件有限公司 | Event flow control method in network audit and system thereof |
US9141310B1 (en) * | 2012-06-27 | 2015-09-22 | Google Inc. | Methods and apparatuses for shared state information among concurrently running processes or threads |
CN105279431A (en) * | 2014-05-29 | 2016-01-27 | 阿里巴巴集团控股有限公司 | Method, device, and system for recording operation information in mobile device |
-
2016
- 2016-07-25 CN CN201610589958.8A patent/CN106250246B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101256505A (en) * | 2007-03-02 | 2008-09-03 | 中国科学院声学研究所 | Single process contents server device and method based on IO event notification mechanism |
US9141310B1 (en) * | 2012-06-27 | 2015-09-22 | Google Inc. | Methods and apparatuses for shared state information among concurrently running processes or threads |
CN103309752A (en) * | 2013-05-22 | 2013-09-18 | 北京奇虎科技有限公司 | Method and system for communication between components and communication processor |
CN103780678A (en) * | 2013-12-27 | 2014-05-07 | 北京天融信软件有限公司 | Event flow control method in network audit and system thereof |
CN105279431A (en) * | 2014-05-29 | 2016-01-27 | 阿里巴巴集团控股有限公司 | Method, device, and system for recording operation information in mobile device |
Non-Patent Citations (4)
Title |
---|
张席: "《JAVA语言程序设计教程》", 31 August 2015, 西安电子科技大学出版社 * |
江红等: "《Python程序设计教程》", 30 September 2014, 清华大学出版社 * |
王育坚: "《Visual C++面向对象编程教程 第2版》", 31 October 2007, 清华大学出版社 * |
耿祥义,张跃平: "《Java设计模式》", 31 May 2009, 清华大学出版社 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107783849A (en) * | 2017-09-27 | 2018-03-09 | 武汉斗鱼网络科技有限公司 | Event-handling method and client |
CN107783849B (en) * | 2017-09-27 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Event processing method and client |
CN110018910A (en) * | 2018-01-08 | 2019-07-16 | 武汉斗鱼网络科技有限公司 | Enrollment implementation method, storage medium, equipment and the system of event bus |
CN110018910B (en) * | 2018-01-08 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Method, storage medium, device and system for realizing registration template of event bus |
CN108762943A (en) * | 2018-03-22 | 2018-11-06 | 武汉斗鱼网络科技有限公司 | Obtain method, terminal device and the storage medium of the internal realization process of notice |
CN108958717A (en) * | 2018-06-28 | 2018-12-07 | 深圳数字动能信息技术有限公司 | C++ event bus implementation method |
CN108958717B (en) * | 2018-06-28 | 2023-02-28 | 深圳数字动能信息技术有限公司 | C + + event bus implementation method |
CN110769018A (en) * | 2018-07-27 | 2020-02-07 | 北京国双科技有限公司 | Message pushing method and device |
CN109254819A (en) * | 2018-08-30 | 2019-01-22 | 深圳大势智能科技有限公司 | Interface updating method, system, equipment and storage medium based on android system |
CN109308202A (en) * | 2018-09-13 | 2019-02-05 | 武汉斗鱼网络科技有限公司 | A kind of method and mobile terminal linking barrage |
CN109471736A (en) * | 2018-09-14 | 2019-03-15 | 叮联信息技术有限公司 | Event information uninterruptedly transmits at random and Real-Time Sharing method |
CN109460308A (en) * | 2018-11-13 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of event-handling method, system, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106250246B (en) | 2019-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250246A (en) | A kind of method and system of event transmission | |
Li et al. | Understanding and addressing quality attributes of microservices architecture: A Systematic literature review | |
US8250215B2 (en) | Method and system for intelligently leveraging cloud computing resources | |
US8726349B2 (en) | Optimizing interactions between co-located processes | |
TW200821960A (en) | Method and system for complex event processing | |
Francescon et al. | X–MANO: Cross–domain management and orchestration of network services | |
CN102158535A (en) | Cloud computing operating system | |
CN103559118A (en) | Security auditing method based on aspect oriented programming (AOP) and annotation information system | |
Charfi et al. | Reliable, secure, and transacted web service compositions with ao4bpel | |
US9779258B2 (en) | Confidential extraction of system internal data | |
CN104506486A (en) | Software service interface calling method and system with high security levels | |
Haupt et al. | Service composition for REST | |
Courtiat et al. | A general-purpose multimedia synchronization mechanism based on causal relations | |
US10063508B2 (en) | System and method for supporting a pluggable event service in a dependency injection framework | |
CN107515792B (en) | Method and device for processing message by using function class Handler | |
CN111368339B (en) | Electronic signature loading method and device | |
CN109614822A (en) | A kind of Information Resource Access method, apparatus and system based on block chain | |
US8086843B2 (en) | Performing cryptographic provider failover | |
Rafnsson et al. | Limiting information leakage in event-based communication | |
US10129072B1 (en) | Distributed security information and event management system with application-injected remote components | |
US7376955B1 (en) | Server communication channel architecture and implementation method | |
CN115328664B (en) | Message consumption method, device, equipment and medium | |
Mantel et al. | Combining different proof techniques for verifying information flow security | |
Wei et al. | Enhance OpenStack Access Control via Policy Enforcement Based on XACML | |
Abreu et al. | A model-checking approach for service component architectures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |