CN112416632B - Event communication method and device, electronic equipment and computer readable medium - Google Patents

Event communication method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112416632B
CN112416632B CN202011468279.8A CN202011468279A CN112416632B CN 112416632 B CN112416632 B CN 112416632B CN 202011468279 A CN202011468279 A CN 202011468279A CN 112416632 B CN112416632 B CN 112416632B
Authority
CN
China
Prior art keywords
event
information
queue
target
transmission
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.)
Active
Application number
CN202011468279.8A
Other languages
Chinese (zh)
Other versions
CN112416632A (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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202011468279.8A priority Critical patent/CN112416632B/en
Publication of CN112416632A publication Critical patent/CN112416632A/en
Application granted granted Critical
Publication of CN112416632B publication Critical patent/CN112416632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the disclosure discloses an event communication method, an event communication device, an electronic device and a computer readable medium. One embodiment of the method comprises: determining the type of the transmitted event according to the received event transmitting information; in response to determining that the event interception information target queue is empty, adding the event transmission information into an event transmission information target cache queue in an event transmission information cache queue set, wherein the event transmission information target cache queue is matched with the transmission event type; and responding to the received event monitoring information matched with the type of the transmitted event, and processing each event transmitting information in the event transmitting information target cache queue according to the event monitoring information. The implementation mode ensures that the event transmission information is not lost to a certain extent, and ensures the normal operation of event communication.

Description

Event communication method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an event communication method, an event communication apparatus, an electronic device, and a computer-readable medium.
Background
Event communication refers to a method for monitoring events to trigger corresponding operations. The existing event communication method is usually to monitor the event transmission information before receiving the event transmission information.
However, when event communication is performed in the above manner, there are often technical problems as follows:
first, when the event transmission message is not monitored, the event transmission message is lost, thereby causing event communication failure;
secondly, the sequence of event monitoring and event transmission is limited, so that the event communication is not flexible enough and the requirements of various application scenes are difficult to meet.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose an event communication method, apparatus, electronic device and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method of event communication, the method including: determining the type of the transmitted event according to the received event transmitting information; in response to determining that the event interception information target queue is empty, adding the event transmission information into an event transmission information target cache queue in an event transmission information cache queue set, wherein the event transmission information target cache queue is matched with the transmission event type; and responding to the received event monitoring information matched with the type of the transmitted event, and processing each event transmitting information in the event transmitting information target cache queue according to the event monitoring information.
In a second aspect, some embodiments of the present disclosure provide an event communication apparatus, the apparatus comprising: a determining unit configured to determine a transmission event type according to the received event transmission information; an adding unit configured to add the event transmission information to an event transmission information target buffer queue in an event transmission information buffer queue set in response to determining that an event monitoring information target queue is empty, wherein the event transmission information target buffer queue matches the transmission event type; and the processing unit is configured to respond to the event monitoring information matched with the transmitting event type and process each event transmitting information in the event transmitting information target cache queue according to the event monitoring information.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium on which a computer program is stored, wherein the program when executed by a processor implements the method described in any implementation of the first aspect.
The above embodiments of the present disclosure have the following advantages: through the event communication method of some embodiments of the present disclosure, it can be ensured to some extent that the event transmission information is not lost, thereby ensuring normal operation of event communication. Specifically, the reasons for the loss of the event transmission message and the failure of the event communication are: the event transmission information is monitored first, and then the event transmission information can be received. Based on this, the event transmission information buffer queue is introduced in the event communication method of some embodiments of the present disclosure. Event transmission information prior to the event listening is stored in an event transmission information buffer queue so that the event transmission information is not lost. And executing target operation according to the event transmitting information and the event monitoring information when receiving the event monitoring information corresponding to the event transmitting information. Finally, the normal operation of event communication is ensured.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of an event communication method according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of an event communication method according to the present disclosure;
FIG. 3 is a schematic diagram of another application scenario of an event communication method according to some embodiments of the present disclosure;
FIG. 4 is a flow diagram of further embodiments of an event communication method according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of an event communicator according to the present disclosure;
FIG. 6 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of an event communication method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may determine a transmission event type 103 from the received event transmission information 102. The computing device 101 may then add the event emission information 102 to an event emission information target cache queue 104 of the set of event emission information cache queues in response to determining that the event snoop information target queue is empty. The event transmission information target buffer queue 104 is matched with the transmission event type 103. Next, in response to receiving the event snoop information 105 matching the transmission event type 103, the computing device 101 may process each event transmission information in the event transmission information target buffer queue 104 according to the event snoop information 105.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple pieces of software and software modules for providing distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of an event communication method according to the present disclosure is shown. The event communication method comprises the following steps:
step 201, determining the type of the transmitted event according to the received event transmission information.
In some embodiments, the executing agent of the event communication method (e.g., computing device 101 shown in FIG. 1) may determine the transmit event type from the received event transmit information. The event transmission information may refer to operation information of the hardware device. For example, mouse click information, mouse double click information, mouse hover information, keyboard press information, and the like. The category of the event source characterized by the event transmission information may be determined as the transmission event type. The event source may be a hardware device that generates the event transmission information. If the event source generating the mouse click information is a mouse, the type of the transmission event of the mouse click information may be determined as the mouse event type. The event transmission information may further include information indicating the user identity level. Such as user identity level information of 'general user', 'primary member', 'advanced member' and the like. Information that can distinguish different event emission information among the event emission information may be used as the emission event type. The subscriber identity level information included in the event transmission information may be used as the transmission event type of the event transmission information.
Step 202, in response to determining that the event listening information target queue is empty, adding the event transmission information to an event transmission information target cache queue in the event transmission information cache queue set.
In some embodiments, the execution subject may add the event transmission information to an event transmission information target buffer queue of the set of event transmission information buffer queues in response to determining that the event snoop information target queue is empty. The event transmission information target buffer queue is matched with the transmission event type. Matching may mean that the type of the transmission event of each event transmission message in the event transmission message target buffer queue is the same as the type of the transmission event. The event snoop message target queue may be an event snoop message queue including event snoop messages each corresponding to the type of the transmitted event. The corresponding may mean that the type of the event transmission information for the monitoring operation represented by each event monitoring information in the event monitoring information target queue is the same as the type of the event transmission.
As an example, referring to fig. 3, the event transmission information 102 may be added to the event transmission information target buffer queue 104 of the set of event transmission information buffer queues in response to determining that the event snoop information target queue 301 is empty.
Step 203, in response to receiving the event monitoring information matched with the type of the transmitted event, processing each event transmission information in the event transmission information target cache queue according to the event monitoring information.
In some embodiments, the execution main body may, in response to receiving the event snoop information matching the transmission event type, process each event transmission information in the event transmission information target buffer queue according to the event snoop information. The event monitoring information matched with the transmission event type may be the event monitoring information that the transmission event type of the event transmission information for which the characterized monitoring operation is directed is the same as the transmission event type. The event listening information may be storage path information. Each piece of event transmission information in the event transmission information target buffer queue may be stored to a position indicated by the storage path information according to the storage path information included in the event listening information.
In some optional implementation manners of some embodiments, the executing main body processes each event transmission information in the event transmission information target buffer queue according to the event monitoring information, and may include the following steps:
and step one, according to the event monitoring information, executing target operation on each event transmitting information in the event transmitting information target cache queue. The event monitoring information may be an IP Address (Internet Protocol Address). Each event transmission message in the event transmission message target buffer queue may be sent to the device indicated by the IP address included in the event listening message for further processing.
And secondly, deleting each event transmitting information in the event transmitting information target buffer queue.
In some optional implementation manners of some embodiments, the execution main body processes each event transmission information in the event transmission information target cache queue according to the event monitoring information, and may further add the event monitoring information to the event monitoring information target queue.
In some optional implementations of some embodiments, the event transmission information includes: transmitting event parameters, wherein the event monitoring information further comprises: target operation information.
The executing main body executes the target operation on each event transmitting information in the event transmitting information target cache queue according to the event monitoring information, and may include the following steps:
and executing target operation according to target operation information included in the event monitoring information and the transmission event parameter included in the event transmission information. The target operation information may be a name of an interface for performing the target operation. The event transmission parameters described above may be parameters required to perform a target operation. The transmit event parameter may be passed to the interface indicated by the interface name to perform the target operation.
The above embodiments of the present disclosure have the following advantages: through the event communication method of some embodiments of the present disclosure, it can be ensured to some extent that the event transmission information is not lost, thereby ensuring normal operation of event communication. Specifically, the reasons for the loss of the event transmission message and the failure of the event communication are: the event transmission information is monitored first, and then the event transmission information can be received. Based on this, the event transmission information buffer queue is introduced in the event communication method of some embodiments of the present disclosure. Storing the event transmission information prior to the event monitoring in the event transmission information buffer queue, so that the event transmission information is not lost. And executing target operation according to the event transmitting information and the event monitoring information when receiving the event monitoring information corresponding to the event transmitting information. Finally, the normal operation of event communication is ensured.
With further reference to fig. 4, a flow 400 of further embodiments of an event communication method is illustrated. The process 400 of the event communication method includes the following steps:
step 401, determining a transmission event type according to the received event transmission information.
In some embodiments, the specific implementation of step 401 and the technical effect thereof may refer to step 201 in the embodiment corresponding to fig. 2, and are not described herein again.
Step 402, in response to determining that no event listening information target queue exists in the set of event listening information queues, creating an event listening information target queue, and adding the event listening information target queue to the set of event listening information queues.
In some embodiments, the execution principal may create the event snoop message target queue in response to determining that the event snoop message target queue does not exist in the set of event snoop message queues, and add the event snoop message target queue to the set of event snoop message queues. The event monitoring information target queue may be an event monitoring information queue including each event monitoring information corresponding to the type of the transmission event. If the event monitoring information target queue does not exist, an empty event monitoring information queue can be created and used as the event monitoring information target queue.
Step 403, in response to determining that no event transmission information target buffer queue exists in the event transmission information buffer queue set, creating an event transmission information target buffer queue, and adding the event transmission information target buffer queue to the event transmission information buffer queue set.
In some embodiments, the execution agent may create the event transmission information target buffer queue in response to determining that no event transmission information target buffer queue exists in the event transmission information buffer queue set, and add the event transmission information target buffer queue to the event transmission information buffer queue set. The event transmission information target buffer queue refers to an event transmission information buffer queue which comprises event transmission information and has the same event transmission type as the event type. If the event transmission information target cache queue does not exist, an empty event transmission information cache queue can be created and used as the event transmission information target cache queue.
In response to determining that the event snoop message target queue is empty, add the event transmit message to an event transmit message target cache queue of the set of event transmit message cache queues, STEP 404.
Step 405, in response to receiving the event monitoring information matched with the type of the transmitted event, processing each event transmission information in the event transmission information target cache queue according to the event monitoring information.
In some embodiments, specific implementations of steps 404 to 405 and technical effects thereof may refer to steps 202 to 203 in the embodiment corresponding to fig. 2, and are not described herein again.
Step 406, in response to determining that the event monitoring information target queue is not empty, performing target operation on the event transmitting information according to each event monitoring information in the event monitoring information target queue.
In some embodiments, the executing agent may perform a target operation on the event dispatch message according to each event snoop message in the event snoop message target queue in response to determining that the event snoop message target queue is not empty. And monitoring information according to each event in the event monitoring information target queue. The specific implementation of the target operation performed on the event transmission information and the technical effect brought by the target operation can refer to step 203 in the embodiment corresponding to fig. 2.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the flow 400 of the event communication method in some embodiments corresponding to fig. 4 embodies flexible configuration of the occurrence order between the event listening information and the event transmitting information. The event transmission can be prior to the event monitoring, and the requirements of different application scenes on the sequence between the event monitoring and the event transmission are met on the premise of ensuring that the event transmission information is not lost.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an event communication apparatus, which correspond to those of the method embodiments illustrated in fig. 2, and which may be particularly applied in various electronic devices.
As shown in fig. 5, the event communicator 500 of some embodiments comprises: a determination unit 501, an adding unit 502 and a processing unit 503. Wherein the determining unit 501 is configured to determine the transmission event type according to the received event transmission information. An adding unit 502 configured to add the event transmission information to an event transmission information target buffer queue in an event transmission information buffer queue set in response to determining that the event listening information target queue is empty, wherein the event transmission information target buffer queue matches with the transmission event type. The processing unit 503 is configured to, in response to receiving the event monitoring information matching the type of the transmission event, process each event transmission information in the event transmission information target buffer queue according to the event monitoring information.
In an optional implementation of some embodiments, the processing unit 503 of the event communicator 500 may be further configured to: according to the event monitoring information, executing target operation on each event transmitting information in the event transmitting information target cache queue; and deleting each event transmission information in the event transmission information target buffer queue.
In an optional implementation manner of some embodiments, the processing unit 503 of the event communication apparatus 500 may be further configured to: and adding the event monitoring information into the event monitoring information target queue.
In an optional implementation manner of some embodiments, the event communication apparatus 500 may further include an execution unit. Wherein the execution unit may be configured to: and in response to determining that the event monitoring information target queue is not empty, performing target operation on the event transmitting information according to each event monitoring information in the event monitoring information target queue.
In an optional implementation manner of some embodiments, the event transmission information includes: transmitting event parameters, wherein the event monitoring information further comprises: target operation information. The performing, according to the event monitoring information, the target operation on each event transmission information in the event transmission information target buffer queue may include: and executing target operation according to target operation information included in the event monitoring information and the transmission event parameter included in the event transmission information.
In an optional implementation manner of some embodiments, before adding the event transmission information to the event transmission information target buffer queue in the event transmission information buffer queue set in response to determining that the event snoop information target queue is empty, the event communication apparatus 500 may further include a first creating and executing unit. Wherein the first creating and executing unit may be configured to: in response to determining that no event listener information target queue exists in the set of event listener information queues, creating the event listener information target queue, and adding the event listener information target queue to the set of event listener information queues.
In an optional implementation manner of some embodiments, before adding the event transmission information to the event transmission information target buffer queue in the event transmission information buffer queue set in response to determining that the event snoop information target queue is empty, the event communication apparatus 500 may further include a second creating and executing unit. Wherein the second creating and executing unit may be configured to: and in response to the fact that the event transmission information target cache queue does not exist in the event transmission information cache queue set, creating the event transmission information target cache queue, and adding the event transmission information target cache queue into the event transmission information cache queue set.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, shown is a schematic diagram of an electronic device 600 suitable for use in implementing some embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining the type of the transmitted event according to the received event transmitting information; in response to determining that the event snoop message target queue is empty, adding the event transmission message to an event transmission message target cache queue in an event transmission message cache queue set, wherein the event transmission message target cache queue matches the transmission event type; and responding to the received event monitoring information matched with the type of the transmitted event, and processing each event transmitting information in the event transmitting information target cache queue according to the event monitoring information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a determination unit, a joining unit, and a processing unit. Where the names of the units do not in some cases constitute a limitation of the units themselves, the determination unit may also be described as a "unit for determining the type of transmission event from the received event transmission information", for example.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.

Claims (9)

1. An event communication method, comprising:
determining the type of the transmitted event according to the received event transmission information;
in response to determining that an event listening information target queue is empty, adding the event transmission information into an event transmission information target cache queue in an event transmission information cache queue set, wherein the event transmission information target cache queue is matched with the transmission event type;
in response to receiving event monitoring information matched with the type of the transmitted event, processing each event transmitting information in the event transmitting information target cache queue according to the event monitoring information;
and in response to determining that the event monitoring information target queue is not empty, performing target operation on the event transmitting information according to each event monitoring information in the event monitoring information target queue.
2. The event communication method according to claim 1, wherein the processing each event transmission information in the event transmission information target buffer queue according to the event snoop information includes:
according to the event monitoring information, executing target operation on each event transmitting information in the event transmitting information target cache queue;
and deleting each event transmitting information in the event transmitting information target buffer queue.
3. The event communication method according to claim 2, wherein the processing each event transmission information in the event transmission information target buffer queue according to the event snoop information further comprises:
and adding the event monitoring information into the event monitoring information target queue.
4. The event communication method according to claim 2, wherein the event transmission information includes: transmitting event parameters, the event listening information further comprising: target operation information; and
the executing target operation on each event transmitting information in the event transmitting information target cache queue according to the event monitoring information comprises the following steps:
and executing target operation according to target operation information included in the event monitoring information and the transmission event parameter included in the event transmission information.
5. The event communication method of claim 1, wherein prior to said adding the event emission information to an event emission information target cache queue of a set of event emission information cache queues in response to determining that an event snoop information target queue is empty, the method further comprises:
in response to determining that an event listening information target queue does not exist in the set of event listening information queues, creating the event listening information target queue, and adding the event listening information target queue to the set of event listening information queues.
6. The event communication method according to claim 5, wherein prior to said adding the event emission information to an event emission information target buffer queue of a set of event emission information buffer queues in response to determining that an event snoop information target queue is empty, the method further comprises:
in response to determining that no event transmission information target buffer queue exists in the event transmission information buffer queue set, creating the event transmission information target buffer queue, and adding the event transmission information target buffer queue to the event transmission information buffer queue set.
7. An event communication device, comprising:
a determining unit configured to determine a transmission event type according to the received event transmission information;
an adding unit configured to add the event emission information to an event emission information target buffer queue in an event emission information buffer queue set in response to determining that an event listening information target queue is empty, wherein the event emission information target buffer queue matches the emission event type;
the processing unit is configured to respond to the event monitoring information matched with the emission event type, and process each event emission information in the event emission information target cache queue according to the event monitoring information;
an execution unit configured to, in response to determining that the event monitoring information target queue is not empty, execute a target operation on the event transmission information according to each event monitoring information in the event monitoring information target queue.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-6.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202011468279.8A 2020-12-14 2020-12-14 Event communication method and device, electronic equipment and computer readable medium Active CN112416632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011468279.8A CN112416632B (en) 2020-12-14 2020-12-14 Event communication method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011468279.8A CN112416632B (en) 2020-12-14 2020-12-14 Event communication method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112416632A CN112416632A (en) 2021-02-26
CN112416632B true CN112416632B (en) 2023-01-17

Family

ID=74775775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011468279.8A Active CN112416632B (en) 2020-12-14 2020-12-14 Event communication method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112416632B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905593B (en) * 2021-03-04 2024-02-02 天九共享网络科技集团有限公司 Report generation method, report generation device, report generation medium and electronic equipment
CN113177327A (en) * 2021-05-20 2021-07-27 广东博智林机器人有限公司 Simulation method, device, storage medium and processor
CN113553206B (en) * 2021-09-22 2021-12-21 北京德风新征程科技有限公司 Data event execution method and device, electronic equipment and computer readable medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309752B (en) * 2013-05-22 2016-06-29 北京奇虎科技有限公司 The method and system of inter-component communication and communication processor
CN108958174B (en) * 2017-05-19 2020-03-03 北京京东尚科信息技术有限公司 Multi-class device control method and system
CN108563493A (en) * 2018-04-12 2018-09-21 郑州云海信息技术有限公司 A kind of event-driven method, device, equipment and readable storage medium storing program for executing
CN110532067A (en) * 2018-05-25 2019-12-03 杭州海康威视数字技术股份有限公司 Event-handling method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112416632A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN112363879A (en) Cache server performance test method, device, equipment and medium
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN113595927A (en) Method and device for processing mirror flow in bypass mode
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN114785770A (en) Mirror layer file sending method and device, electronic equipment and computer readable medium
CN112817701B (en) Timer processing method, device, electronic equipment and computer readable medium
CN114115941A (en) Resource sending method, page rendering method, device, electronic equipment and medium
CN114035861A (en) Cluster configuration method and device, electronic equipment and computer readable medium
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN111930331A (en) Information display method and device, electronic equipment and computer readable medium
CN113283891A (en) Information processing method and device and electronic equipment
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN110262756B (en) Method and device for caching data
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN113765692B (en) Current limiting method, device, electronic equipment and computer readable medium
CN114116859A (en) Number source information sending method and device, electronic equipment and computer readable medium
CN113537028B (en) Control method, apparatus, device and medium for face recognition system
CN113722206A (en) Data annotation method and device, electronic equipment and computer readable medium
CN114172946A (en) Request result sending method and device, electronic equipment and computer readable medium
CN114444064A (en) Account processing method and device, electronic equipment and computer readable medium
CN114430364A (en) Information display method and device, electronic equipment and computer readable medium
CN117149870A (en) Data importing method, device, electronic equipment and computer readable medium
CN113722313A (en) Data write request processing method, device, equipment and computer readable medium
CN116866229A (en) Network delay monitoring method, message response method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant